<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>spade.bdi</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="spade-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://spade2.googlecode.com">SPADE</a></th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="spade-module.html">Package&nbsp;spade</a> ::
        Module&nbsp;bdi
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="spade.bdi-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="spade.bdi-module.html">Module spade.bdi</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno">  1</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-0" class="py-name" targets="Module spade.logic=spade.logic-module.html"><a title="spade.logic" class="py-name" href="#" onclick="return doclink('link-0', 'logic', 'link-0');">logic</a></tt> <tt class="py-keyword">import</tt> <tt class="py-op">*</tt> </tt>
<a name="L2"></a><tt class="py-lineno">  2</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-1" class="py-name" targets="Method spade.odict.odict.copy()=spade.odict.odict-class.html#copy,Method spade.pyparsing.Keyword.copy()=spade.pyparsing.Keyword-class.html#copy,Method spade.pyparsing.ParseResults.copy()=spade.pyparsing.ParseResults-class.html#copy,Method spade.pyparsing.ParserElement.copy()=spade.pyparsing.ParserElement-class.html#copy"><a title="spade.odict.odict.copy
spade.pyparsing.Keyword.copy
spade.pyparsing.ParseResults.copy
spade.pyparsing.ParserElement.copy" class="py-name" href="#" onclick="return doclink('link-1', 'copy', 'link-1');">copy</a></tt> <tt class="py-keyword">import</tt> <tt id="link-2" class="py-name"><a title="spade.odict.odict.copy
spade.pyparsing.Keyword.copy
spade.pyparsing.ParseResults.copy
spade.pyparsing.ParserElement.copy" class="py-name" href="#" onclick="return doclink('link-2', 'copy', 'link-1');">copy</a></tt> </tt>
<a name="L3"></a><tt class="py-lineno">  3</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt id="link-3" class="py-name" targets="Variable spade.bdi.Goal.types=spade.bdi.Goal-class.html#types"><a title="spade.bdi.Goal.types" class="py-name" href="#" onclick="return doclink('link-3', 'types', 'link-3');">types</a></tt> </tt>
<a name="L4"></a><tt class="py-lineno">  4</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">random</tt> </tt>
<a name="L5"></a><tt class="py-lineno">  5</tt>  <tt class="py-line"> </tt>
<a name="L6"></a><tt class="py-lineno">  6</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt id="link-4" class="py-name" targets="Module spade.Behaviour=spade.Behaviour-module.html,Class spade.Behaviour.Behaviour=spade.Behaviour.Behaviour-class.html"><a title="spade.Behaviour
spade.Behaviour.Behaviour" class="py-name" href="#" onclick="return doclink('link-4', 'Behaviour', 'link-4');">Behaviour</a></tt> </tt>
<a name="L7"></a><tt class="py-lineno">  7</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt id="link-5" class="py-name" targets="Module spade.tbcbp=spade.tbcbp-module.html"><a title="spade.tbcbp" class="py-name" href="#" onclick="return doclink('link-5', 'tbcbp', 'link-5');">tbcbp</a></tt> </tt>
<a name="L8"></a><tt class="py-lineno">  8</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt id="link-6" class="py-name" targets="Module spade.DF=spade.DF-module.html,Class spade.DF.DF=spade.DF.DF-class.html"><a title="spade.DF
spade.DF.DF" class="py-name" href="#" onclick="return doclink('link-6', 'DF', 'link-6');">DF</a></tt> </tt>
<a name="L9"></a><tt class="py-lineno">  9</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-7" class="py-name" targets="Module spade.FlexQueue=spade.FlexQueue-module.html,Class spade.FlexQueue.FlexQueue=spade.FlexQueue.FlexQueue-class.html"><a title="spade.FlexQueue
spade.FlexQueue.FlexQueue" class="py-name" href="#" onclick="return doclink('link-7', 'FlexQueue', 'link-7');">FlexQueue</a></tt> <tt class="py-keyword">import</tt> <tt id="link-8" class="py-name"><a title="spade.FlexQueue
spade.FlexQueue.FlexQueue" class="py-name" href="#" onclick="return doclink('link-8', 'FlexQueue', 'link-7');">FlexQueue</a></tt> </tt>
<a name="L10"></a><tt class="py-lineno"> 10</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt class="py-name">Queue</tt> <tt class="py-keyword">import</tt> <tt class="py-name">Queue</tt> </tt>
<a name="L11"></a><tt class="py-lineno"> 11</tt>  <tt class="py-line"> </tt>
<a name="PreConditionFailed"></a><div id="PreConditionFailed-def"><a name="L12"></a><tt class="py-lineno"> 12</tt> <a class="py-toggle" href="#" id="PreConditionFailed-toggle" onclick="return toggle('PreConditionFailed');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="spade.bdi.PreConditionFailed-class.html">PreConditionFailed</a> <tt class="py-op">(</tt><tt class="py-base-class">Exception</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">pass</tt> </tt>
</div><a name="PostConditionFailed"></a><div id="PostConditionFailed-def"><a name="L13"></a><tt class="py-lineno"> 13</tt> <a class="py-toggle" href="#" id="PostConditionFailed-toggle" onclick="return toggle('PostConditionFailed');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="spade.bdi.PostConditionFailed-class.html">PostConditionFailed</a><tt class="py-op">(</tt><tt class="py-base-class">Exception</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">pass</tt> </tt>
</div><a name="ServiceFailed"></a><div id="ServiceFailed-def"><a name="L14"></a><tt class="py-lineno"> 14</tt> <a class="py-toggle" href="#" id="ServiceFailed-toggle" onclick="return toggle('ServiceFailed');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="spade.bdi.ServiceFailed-class.html">ServiceFailed</a><tt class="py-op">(</tt><tt class="py-base-class">Exception</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">pass</tt> </tt>
</div><a name="L15"></a><tt class="py-lineno"> 15</tt>  <tt class="py-line"> </tt>
<a name="Goal"></a><div id="Goal-def"><a name="L16"></a><tt class="py-lineno"> 16</tt> <a class="py-toggle" href="#" id="Goal-toggle" onclick="return toggle('Goal');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="spade.bdi.Goal-class.html">Goal</a><tt class="py-op">:</tt> </tt>
</div><div id="Goal-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="Goal-expanded"><a name="L17"></a><tt class="py-lineno"> 17</tt>  <tt class="py-line">     </tt>
<a name="L18"></a><tt class="py-lineno"> 18</tt>  <tt class="py-line">    <tt id="link-9" class="py-name"><a title="spade.bdi.Goal.types" class="py-name" href="#" onclick="return doclink('link-9', 'types', 'link-3');">types</a></tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-string">"achieve"</tt><tt class="py-op">,</tt><tt class="py-string">"mantain"</tt><tt class="py-op">,</tt><tt class="py-string">"cease"</tt><tt class="py-op">,</tt><tt class="py-string">"query"</tt><tt class="py-op">,</tt><tt class="py-string">"perform"</tt><tt class="py-op">]</tt> </tt>
<a name="L19"></a><tt class="py-lineno"> 19</tt>  <tt class="py-line">     </tt>
<a name="Goal.__init__"></a><div id="Goal.__init__-def"><a name="L20"></a><tt class="py-lineno"> 20</tt> <a class="py-toggle" href="#" id="Goal.__init__-toggle" onclick="return toggle('Goal.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.bdi.Goal-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">expression</tt><tt class="py-op">,</tt> <tt class="py-param">typ</tt><tt class="py-op">=</tt><tt class="py-string">"achieve"</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Goal.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Goal.__init__-expanded"><a name="L21"></a><tt class="py-lineno"> 21</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">type</tt> <tt class="py-op">=</tt> <tt class="py-name">typ</tt> </tt>
<a name="L22"></a><tt class="py-lineno"> 22</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">expression</tt> <tt class="py-op">=</tt> <tt class="py-name">expression</tt> </tt>
<a name="L23"></a><tt class="py-lineno"> 23</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">persistent</tt> <tt class="py-op">=</tt> <tt class="py-name">False</tt> </tt>
<a name="L24"></a><tt class="py-lineno"> 24</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">priority</tt> <tt class="py-op">=</tt> <tt class="py-number">0</tt> </tt>
<a name="L25"></a><tt class="py-lineno"> 25</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">selected</tt> <tt class="py-op">=</tt> <tt class="py-name">False</tt> </tt>
<a name="L26"></a><tt class="py-lineno"> 26</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">unreachable</tt> <tt class="py-op">=</tt> <tt class="py-name">False</tt> </tt>
<a name="L27"></a><tt class="py-lineno"> 27</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-10" class="py-name" targets="Method spade.Behaviour.Behaviour.done()=spade.Behaviour.Behaviour-class.html#done,Method spade.Behaviour.FSMBehaviour.done()=spade.Behaviour.FSMBehaviour-class.html#done,Method spade.Behaviour.OneShotBehaviour.done()=spade.Behaviour.OneShotBehaviour-class.html#done,Method spade.Behaviour.TimeOutBehaviour.done()=spade.Behaviour.TimeOutBehaviour-class.html#done"><a title="spade.Behaviour.Behaviour.done
spade.Behaviour.FSMBehaviour.done
spade.Behaviour.OneShotBehaviour.done
spade.Behaviour.TimeOutBehaviour.done" class="py-name" href="#" onclick="return doclink('link-10', 'done', 'link-10');">done</a></tt> <tt class="py-op">=</tt> <tt class="py-name">False</tt> </tt>
</div><a name="L28"></a><tt class="py-lineno"> 28</tt>  <tt class="py-line"> </tt>
<a name="Goal.testConflict"></a><div id="Goal.testConflict-def"><a name="L29"></a><tt class="py-lineno"> 29</tt> <a class="py-toggle" href="#" id="Goal.testConflict-toggle" onclick="return toggle('Goal.testConflict');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.bdi.Goal-class.html#testConflict">testConflict</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">goal</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Goal.testConflict-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Goal.testConflict-expanded"><a name="L30"></a><tt class="py-lineno"> 30</tt>  <tt class="py-line">        <tt class="py-comment"># No conflict test at the moment</tt> </tt>
<a name="L31"></a><tt class="py-lineno"> 31</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">False</tt> </tt>
</div><a name="L32"></a><tt class="py-lineno"> 32</tt>  <tt class="py-line">         </tt>
<a name="Goal.__str__"></a><div id="Goal.__str__-def"><a name="L33"></a><tt class="py-lineno"> 33</tt> <a class="py-toggle" href="#" id="Goal.__str__-toggle" onclick="return toggle('Goal.__str__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.bdi.Goal-class.html#__str__">__str__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Goal.__str__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Goal.__str__-expanded"><a name="L34"></a><tt class="py-lineno"> 34</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">unreachable</tt><tt class="py-op">:</tt> </tt>
<a name="L35"></a><tt class="py-lineno"> 35</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-string">"UNREACHABLE("</tt><tt class="py-op">+</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">expression</tt><tt class="py-op">)</tt><tt class="py-op">+</tt><tt class="py-string">")"</tt> </tt>
<a name="L36"></a><tt class="py-lineno"> 36</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-11" class="py-name"><a title="spade.Behaviour.Behaviour.done
spade.Behaviour.FSMBehaviour.done
spade.Behaviour.OneShotBehaviour.done
spade.Behaviour.TimeOutBehaviour.done" class="py-name" href="#" onclick="return doclink('link-11', 'done', 'link-10');">done</a></tt><tt class="py-op">:</tt> </tt>
<a name="L37"></a><tt class="py-lineno"> 37</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-string">"DONE("</tt><tt class="py-op">+</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">expression</tt><tt class="py-op">)</tt><tt class="py-op">+</tt><tt class="py-string">")"</tt> </tt>
<a name="L38"></a><tt class="py-lineno"> 38</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L39"></a><tt class="py-lineno"> 39</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">expression</tt><tt class="py-op">)</tt> </tt>
</div><a name="L40"></a><tt class="py-lineno"> 40</tt>  <tt class="py-line"> </tt>
<a name="Goal.__repr__"></a><div id="Goal.__repr__-def"><a name="L41"></a><tt class="py-lineno"> 41</tt> <a class="py-toggle" href="#" id="Goal.__repr__-toggle" onclick="return toggle('Goal.__repr__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.bdi.Goal-class.html#__repr__">__repr__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Goal.__repr__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="Goal.__repr__-expanded"><a name="L42"></a><tt class="py-lineno"> 42</tt>  <tt class="py-line">       <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-12" class="py-name" targets="Method spade.ACLMessage.ACLMessage.__str__()=spade.ACLMessage.ACLMessage-class.html#__str__,Method spade.AID.aid.__str__()=spade.AID.aid-class.html#__str__,Method spade.AMS.AmsAgentDescription.__str__()=spade.AMS.AmsAgentDescription-class.html#__str__,Method spade.BasicFipaDateTime.BasicFipaDateTime.__str__()=spade.BasicFipaDateTime.BasicFipaDateTime-class.html#__str__,Method spade.Behaviour.ACLTemplate.__str__()=spade.Behaviour.ACLTemplate-class.html#__str__,Method spade.DF.DfAgentDescription.__str__()=spade.DF.DfAgentDescription-class.html#__str__,Method spade.DF.Service.__str__()=spade.DF.Service-class.html#__str__,Method spade.DF.ServiceDescription.__str__()=spade.DF.ServiceDescription-class.html#__str__,Method spade.Envelope.Envelope.__str__()=spade.Envelope.Envelope-class.html#__str__,Method spade.Platform.PlatformRestart.__str__()=spade.Platform.PlatformRestart-class.html#__str__,Method spade.bdi.Goal.__str__()=spade.bdi.Goal-class.html#__str__,Method spade.content.ContentObject.__str__()=spade.content.ContentObject-class.html#__str__,Method spade.kb.KBConfigurationFailed.__str__()=spade.kb.KBConfigurationFailed-class.html#__str__,Method spade.pyparsing.And.__str__()=spade.pyparsing.And-class.html#__str__,Method spade.pyparsing.CharsNotIn.__str__()=spade.pyparsing.CharsNotIn-class.html#__str__,Method spade.pyparsing.Each.__str__()=spade.pyparsing.Each-class.html#__str__,Method spade.pyparsing.Forward.__str__()=spade.pyparsing.Forward-class.html#__str__,Method spade.pyparsing.MatchFirst.__str__()=spade.pyparsing.MatchFirst-class.html#__str__,Method spade.pyparsing.NotAny.__str__()=spade.pyparsing.NotAny-class.html#__str__,Method spade.pyparsing.OneOrMore.__str__()=spade.pyparsing.OneOrMore-class.html#__str__,Method spade.pyparsing.Optional.__str__()=spade.pyparsing.Optional-class.html#__str__,Method spade.pyparsing.Or.__str__()=spade.pyparsing.Or-class.html#__str__,Method spade.pyparsing.ParseBaseException.__str__()=spade.pyparsing.ParseBaseException-class.html#__str__,Method spade.pyparsing.ParseElementEnhance.__str__()=spade.pyparsing.ParseElementEnhance-class.html#__str__,Method spade.pyparsing.ParseExpression.__str__()=spade.pyparsing.ParseExpression-class.html#__str__,Method spade.pyparsing.ParseResults.__str__()=spade.pyparsing.ParseResults-class.html#__str__,Method spade.pyparsing.ParserElement.__str__()=spade.pyparsing.ParserElement-class.html#__str__,Method spade.pyparsing.RecursiveGrammarException.__str__()=spade.pyparsing.RecursiveGrammarException-class.html#__str__,Method spade.pyparsing.Word.__str__()=spade.pyparsing.Word-class.html#__str__,Method spade.pyparsing.ZeroOrMore.__str__()=spade.pyparsing.ZeroOrMore-class.html#__str__,Method spade.pyparsing._ForwardNoRecurse.__str__()=spade.pyparsing._ForwardNoRecurse-class.html#__str__,Method spade.pyratemp.TemplateBase.__str__()=spade.pyratemp.TemplateBase-class.html#__str__,Method spade.pyratemp.TemplateParseError.__str__()=spade.pyratemp.TemplateParseError-class.html#__str__,Method spade.tbcbp.Case.__str__()=spade.tbcbp.Case-class.html#__str__,Method spade.tbcbp.Plan.__str__()=spade.tbcbp.Plan-class.html#__str__,Method spade.xmpp.protocol.JID.__str__()=spade.xmpp.protocol.JID-class.html#__str__,Method spade.xmpp.simplexml.Node.__str__()=spade.xmpp.simplexml.Node-class.html#__str__,Method spade.xmpp.transports.error.__str__()=spade.xmpp.transports.error-class.html#__str__,Method spade.xmppd.modules.db_fake.DB.__str__()=spade.xmppd.modules.db_fake.DB-class.html#__str__,Method spade.xmppd.modules.muc.Participant.__str__()=spade.xmppd.modules.muc.Participant-class.html#__str__,Method spade.xmppd.modules.muc.Room.__str__()=spade.xmppd.modules.muc.Room-class.html#__str__,Method spade.xmppd.modules.pubsub.PSNode.__str__()=spade.xmppd.modules.pubsub.PSNode-class.html#__str__"><a title="spade.ACLMessage.ACLMessage.__str__
spade.AID.aid.__str__
spade.AMS.AmsAgentDescription.__str__
spade.BasicFipaDateTime.BasicFipaDateTime.__str__
spade.Behaviour.ACLTemplate.__str__
spade.DF.DfAgentDescription.__str__
spade.DF.Service.__str__
spade.DF.ServiceDescription.__str__
spade.Envelope.Envelope.__str__
spade.Platform.PlatformRestart.__str__
spade.bdi.Goal.__str__
spade.content.ContentObject.__str__
spade.kb.KBConfigurationFailed.__str__
spade.pyparsing.And.__str__
spade.pyparsing.CharsNotIn.__str__
spade.pyparsing.Each.__str__
spade.pyparsing.Forward.__str__
spade.pyparsing.MatchFirst.__str__
spade.pyparsing.NotAny.__str__
spade.pyparsing.OneOrMore.__str__
spade.pyparsing.Optional.__str__
spade.pyparsing.Or.__str__
spade.pyparsing.ParseBaseException.__str__
spade.pyparsing.ParseElementEnhance.__str__
spade.pyparsing.ParseExpression.__str__
spade.pyparsing.ParseResults.__str__
spade.pyparsing.ParserElement.__str__
spade.pyparsing.RecursiveGrammarException.__str__
spade.pyparsing.Word.__str__
spade.pyparsing.ZeroOrMore.__str__
spade.pyparsing._ForwardNoRecurse.__str__
spade.pyratemp.TemplateBase.__str__
spade.pyratemp.TemplateParseError.__str__
spade.tbcbp.Case.__str__
spade.tbcbp.Plan.__str__
spade.xmpp.protocol.JID.__str__
spade.xmpp.simplexml.Node.__str__
spade.xmpp.transports.error.__str__
spade.xmppd.modules.db_fake.DB.__str__
spade.xmppd.modules.muc.Participant.__str__
spade.xmppd.modules.muc.Room.__str__
spade.xmppd.modules.pubsub.PSNode.__str__" class="py-name" href="#" onclick="return doclink('link-12', '__str__', 'link-12');">__str__</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L43"></a><tt class="py-lineno"> 43</tt>  <tt class="py-line"> </tt>
<a name="L44"></a><tt class="py-lineno"> 44</tt>  <tt class="py-line"> </tt>
<a name="PlanList"></a><div id="PlanList-def"><a name="L45"></a><tt class="py-lineno"> 45</tt> <a class="py-toggle" href="#" id="PlanList-toggle" onclick="return toggle('PlanList');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="spade.bdi.PlanList-class.html">PlanList</a><tt class="py-op">(</tt><tt class="py-base-class">dict</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PlanList-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="PlanList-expanded"><a name="L46"></a><tt class="py-lineno"> 46</tt>  <tt class="py-line">    <tt class="py-comment">#plans hash table. PID is the PlanID</tt> </tt>
<a name="PlanList.add"></a><div id="PlanList.add-def"><a name="L47"></a><tt class="py-lineno"> 47</tt> <a class="py-toggle" href="#" id="PlanList.add-toggle" onclick="return toggle('PlanList.add');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.bdi.PlanList-class.html#add">add</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">plan</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PlanList.add-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="PlanList.add-expanded"><a name="L48"></a><tt class="py-lineno"> 48</tt>  <tt class="py-line">        <tt class="py-name">pid</tt> <tt class="py-op">=</tt> <tt class="py-name">random</tt><tt class="py-op">.</tt><tt class="py-name">randint</tt><tt class="py-op">(</tt><tt class="py-number">1</tt><tt class="py-op">,</tt><tt class="py-number">100000000</tt><tt class="py-op">)</tt> </tt>
<a name="L49"></a><tt class="py-lineno"> 49</tt>  <tt class="py-line">        <tt class="py-keyword">while</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">has_key</tt><tt class="py-op">(</tt><tt class="py-name">pid</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L50"></a><tt class="py-lineno"> 50</tt>  <tt class="py-line">            <tt class="py-name">pid</tt> <tt class="py-op">=</tt> <tt class="py-name">random</tt><tt class="py-op">.</tt><tt class="py-name">randint</tt><tt class="py-op">(</tt><tt class="py-number">1</tt><tt class="py-op">,</tt><tt class="py-number">100000000</tt><tt class="py-op">)</tt> </tt>
<a name="L51"></a><tt class="py-lineno"> 51</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-name">pid</tt><tt class="py-op">]</tt><tt class="py-op">=</tt><tt class="py-name">plan</tt> </tt>
<a name="L52"></a><tt class="py-lineno"> 52</tt>  <tt class="py-line">        <tt class="py-name">plan</tt><tt class="py-op">.</tt><tt class="py-name">pid</tt> <tt class="py-op">=</tt> <tt class="py-name">pid</tt> </tt>
<a name="L53"></a><tt class="py-lineno"> 53</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">pid</tt> </tt>
</div></div><a name="L54"></a><tt class="py-lineno"> 54</tt>  <tt class="py-line"> </tt>
<a name="L55"></a><tt class="py-lineno"> 55</tt>  <tt class="py-line"> </tt>
<a name="L56"></a><tt class="py-lineno"> 56</tt>  <tt class="py-line"><tt class="py-comment">#class BDIAgent(Agent.Agent):</tt> </tt>
<a name="BDIBehaviour"></a><div id="BDIBehaviour-def"><a name="L57"></a><tt class="py-lineno"> 57</tt> <a class="py-toggle" href="#" id="BDIBehaviour-toggle" onclick="return toggle('BDIBehaviour');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="spade.bdi.BDIBehaviour-class.html">BDIBehaviour</a><tt class="py-op">(</tt><tt class="py-base-class">Behaviour</tt><tt class="py-op">.</tt><tt class="py-base-class">PeriodicBehaviour</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BDIBehaviour-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="BDIBehaviour-expanded"><a name="L58"></a><tt class="py-lineno"> 58</tt>  <tt class="py-line"> </tt>
<a name="L59"></a><tt class="py-lineno"> 59</tt>  <tt class="py-line">    <tt class="py-comment">#def __init__(self,agentjid, password, port=5222, debug=[], p2p=False):</tt> </tt>
<a name="L60"></a><tt class="py-lineno"> 60</tt>  <tt class="py-line">    <tt class="py-comment">#    Agent.Agent.__init__(self,agentjid, password, port=port, debug=debug, p2p=p2p)</tt> </tt>
<a name="BDIBehaviour.__init__"></a><div id="BDIBehaviour.__init__-def"><a name="L61"></a><tt class="py-lineno"> 61</tt> <a class="py-toggle" href="#" id="BDIBehaviour.__init__-toggle" onclick="return toggle('BDIBehaviour.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.bdi.BDIBehaviour-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">period</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BDIBehaviour.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="BDIBehaviour.__init__-expanded"><a name="L62"></a><tt class="py-lineno"> 62</tt>  <tt class="py-line">        <tt id="link-13" class="py-name"><a title="spade.Behaviour
spade.Behaviour.Behaviour" class="py-name" href="#" onclick="return doclink('link-13', 'Behaviour', 'link-4');">Behaviour</a></tt><tt class="py-op">.</tt><tt id="link-14" class="py-name" targets="Class spade.Behaviour.PeriodicBehaviour=spade.Behaviour.PeriodicBehaviour-class.html"><a title="spade.Behaviour.PeriodicBehaviour" class="py-name" href="#" onclick="return doclink('link-14', 'PeriodicBehaviour', 'link-14');">PeriodicBehaviour</a></tt><tt class="py-op">.</tt><tt id="link-15" class="py-name" targets="Method spade.ACLMessage.ACLMessage.__init__()=spade.ACLMessage.ACLMessage-class.html#__init__,Method spade.ACLParser.ACLParser.__init__()=spade.ACLParser.ACLParser-class.html#__init__,Method spade.ACLParser.ACLxmlParser.__init__()=spade.ACLParser.ACLxmlParser-class.html#__init__,Method spade.AID.aid.__init__()=spade.AID.aid-class.html#__init__,Method spade.AMS.AMS.DefaultBehaviour.__init__()=spade.AMS.AMS.DefaultBehaviour-class.html#__init__,Method spade.AMS.AMS.ModifyBehaviour.__init__()=spade.AMS.AMS.ModifyBehaviour-class.html#__init__,Method spade.AMS.AMS.PlatformBehaviour.__init__()=spade.AMS.AMS.PlatformBehaviour-class.html#__init__,Method spade.AMS.AMS.RegisterBehaviour.__init__()=spade.AMS.AMS.RegisterBehaviour-class.html#__init__,Method spade.AMS.AMS.SearchBehaviour.__init__()=spade.AMS.AMS.SearchBehaviour-class.html#__init__,Method spade.AMS.AMS.__init__()=spade.AMS.AMS-class.html#__init__,Method spade.AMS.AmsAgentDescription.__init__()=spade.AMS.AmsAgentDescription-class.html#__init__,Method spade.Agent.AbstractAgent.__init__()=spade.Agent.AbstractAgent-class.html#__init__,Method spade.Agent.Agent.__init__()=spade.Agent.Agent-class.html#__init__,Method spade.Agent.PlatformAgent.__init__()=spade.Agent.PlatformAgent-class.html#__init__,Method spade.Agent.jabberProcess.__init__()=spade.Agent.jabberProcess-class.html#__init__,Method spade.BasicFipaDateTime.BasicFipaDateTime.__init__()=spade.BasicFipaDateTime.BasicFipaDateTime-class.html#__init__,Method spade.Behaviour.ACLTemplate.__init__()=spade.Behaviour.ACLTemplate-class.html#__init__,Method spade.Behaviour.ANDTemplate.__init__()=spade.Behaviour.ANDTemplate-class.html#__init__,Method spade.Behaviour.Behaviour.__init__()=spade.Behaviour.Behaviour-class.html#__init__,Method spade.Behaviour.BehaviourTemplate.__init__()=spade.Behaviour.BehaviourTemplate-class.html#__init__,Method spade.Behaviour.EventBehaviour.__init__()=spade.Behaviour.EventBehaviour-class.html#__init__,Method spade.Behaviour.FSMBehaviour.__init__()=spade.Behaviour.FSMBehaviour-class.html#__init__,Method spade.Behaviour.MessageTemplate.__init__()=spade.Behaviour.MessageTemplate-class.html#__init__,Method spade.Behaviour.NOTTemplate.__init__()=spade.Behaviour.NOTTemplate-class.html#__init__,Method spade.Behaviour.ORTemplate.__init__()=spade.Behaviour.ORTemplate-class.html#__init__,Method spade.Behaviour.OneShotBehaviour.__init__()=spade.Behaviour.OneShotBehaviour-class.html#__init__,Method spade.Behaviour.PeriodicBehaviour.__init__()=spade.Behaviour.PeriodicBehaviour-class.html#__init__,Method spade.Behaviour.TimeOutBehaviour.__init__()=spade.Behaviour.TimeOutBehaviour-class.html#__init__,Method spade.Behaviour.XORTemplate.__init__()=spade.Behaviour.XORTemplate-class.html#__init__,Method spade.DF.DF.DefaultBehaviour.__init__()=spade.DF.DF.DefaultBehaviour-class.html#__init__,Method spade.DF.DF.ModifyBehaviour.__init__()=spade.DF.DF.ModifyBehaviour-class.html#__init__,Method spade.DF.DF.RegisterBehaviour.__init__()=spade.DF.DF.RegisterBehaviour-class.html#__init__,Method spade.DF.DF.SearchBehaviour.__init__()=spade.DF.DF.SearchBehaviour-class.html#__init__,Method spade.DF.DF.__init__()=spade.DF.DF-class.html#__init__,Method spade.DF.DfAgentDescription.__init__()=spade.DF.DfAgentDescription-class.html#__init__,Method spade.DF.Service.__init__()=spade.DF.Service-class.html#__init__,Method spade.DF.ServiceDescription.__init__()=spade.DF.ServiceDescription-class.html#__init__,Method spade.ECLiPSeKB.ECLiPSeKB.__init__()=spade.ECLiPSeKB.ECLiPSeKB-class.html#__init__,Method spade.Envelope.Envelope.__init__()=spade.Envelope.Envelope-class.html#__init__,Method spade.FIPAMessage.FipaMessage.__init__()=spade.FIPAMessage.FipaMessage-class.html#__init__,Method spade.Flora2KB.Flora2KB.__init__()=spade.Flora2KB.Flora2KB-class.html#__init__,Method spade.MTP.MTP.__init__()=spade.MTP.MTP-class.html#__init__,Method spade.MessageReceiver.MessageReceiver.__init__()=spade.MessageReceiver.MessageReceiver-class.html#__init__,Method spade.Organization.BanedUser.__init__()=spade.Organization.BanedUser-class.html#__init__,Method spade.Organization.CreationError.__init__()=spade.Organization.CreationError-class.html#__init__,Method spade.Organization.DestroyError.__init__()=spade.Organization.DestroyError-class.html#__init__,Method spade.Organization.JoinError.__init__()=spade.Organization.JoinError-class.html#__init__,Method spade.Organization.LastOwner.__init__()=spade.Organization.LastOwner-class.html#__init__,Method spade.Organization.LockedOrganization.__init__()=spade.Organization.LockedOrganization-class.html#__init__,Method spade.Organization.MaximumUsers.__init__()=spade.Organization.MaximumUsers-class.html#__init__,Method spade.Organization.MemberOfFederation.__init__()=spade.Organization.MemberOfFederation-class.html#__init__,Method spade.Organization.MembersOnly.__init__()=spade.Organization.MembersOnly-class.html#__init__,Method spade.Organization.NickNameConflict.__init__()=spade.Organization.NickNameConflict-class.html#__init__,Method spade.Organization.NotOwner.__init__()=spade.Organization.NotOwner-class.html#__init__,Method spade.Organization.NotSupervisor.__init__()=spade.Organization.NotSupervisor-class.html#__init__,Method spade.Organization.NotValidGoal.__init__()=spade.Organization.NotValidGoal-class.html#__init__,Method spade.Organization.NotValidName.__init__()=spade.Organization.NotValidName-class.html#__init__,Method spade.Organization.NotValidType.__init__()=spade.Organization.NotValidType-class.html#__init__,Method spade.Organization.NotValidUnit.__init__()=spade.Organization.NotValidUnit-class.html#__init__,Method spade.Organization.Organization.CreateRoomBehaviour.__init__()=spade.Organization.Organization.CreateRoomBehaviour-class.html#__init__,Method spade.Organization.Organization.CreateTeamBehaviour.__init__()=spade.Organization.Organization.CreateTeamBehaviour-class.html#__init__,Method spade.Organization.Organization.DestroyBehaviour.__init__()=spade.Organization.Organization.DestroyBehaviour-class.html#__init__,Method spade.Organization.Organization.GetRegistrationFormBehaviour.__init__()=spade.Organization.Organization.GetRegistrationFormBehaviour-class.html#__init__,Method spade.Organization.Organization.GetUnitInfoBehaviour.__init__()=spade.Organization.Organization.GetUnitInfoBehaviour-class.html#__init__,Method spade.Organization.Organization.GetUnitListBehaviour.__init__()=spade.Organization.Organization.GetUnitListBehaviour-class.html#__init__,Method spade.Organization.Organization.IsMemberBehaviour.__init__()=spade.Organization.Organization.IsMemberBehaviour-class.html#__init__,Method spade.Organization.Organization.MyJoinRoomBehaviour.__init__()=spade.Organization.Organization.MyJoinRoomBehaviour-class.html#__init__,Method spade.Organization.Organization.SendRegistrationFormBehaviour.__init__()=spade.Organization.Organization.SendRegistrationFormBehaviour-class.html#__init__,Method spade.Organization.Organization.TestRoomNameBehaviour.__init__()=spade.Organization.Organization.TestRoomNameBehaviour-class.html#__init__,Method spade.Organization.Organization.__init__()=spade.Organization.Organization-class.html#__init__,Method spade.Organization.PaswordNeeded.__init__()=spade.Organization.PaswordNeeded-class.html#__init__,Method spade.Organization.Unavailable.__init__()=spade.Organization.Unavailable-class.html#__init__,Method spade.Organization.UnavailableFunction.__init__()=spade.Organization.UnavailableFunction-class.html#__init__,Method spade.Organization_new.BanedUser.__init__()=spade.Organization_new.BanedUser-class.html#__init__,Method spade.Organization_new.CreationError.__init__()=spade.Organization_new.CreationError-class.html#__init__,Method spade.Organization_new.DestroyError.__init__()=spade.Organization_new.DestroyError-class.html#__init__,Method spade.Organization_new.JoinError.__init__()=spade.Organization_new.JoinError-class.html#__init__,Method spade.Organization_new.LastOwner.__init__()=spade.Organization_new.LastOwner-class.html#__init__,Method spade.Organization_new.LockedOrganization.__init__()=spade.Organization_new.LockedOrganization-class.html#__init__,Method spade.Organization_new.MaximumUsers.__init__()=spade.Organization_new.MaximumUsers-class.html#__init__,Method spade.Organization_new.MemberOfFederation.__init__()=spade.Organization_new.MemberOfFederation-class.html#__init__,Method spade.Organization_new.MembersOnly.__init__()=spade.Organization_new.MembersOnly-class.html#__init__,Method spade.Organization_new.NickNameConflict.__init__()=spade.Organization_new.NickNameConflict-class.html#__init__,Method spade.Organization_new.NotCreatePermision.__init__()=spade.Organization_new.NotCreatePermision-class.html#__init__,Method spade.Organization_new.NotSupervisor.__init__()=spade.Organization_new.NotSupervisor-class.html#__init__,Method spade.Organization_new.NotValidGoal.__init__()=spade.Organization_new.NotValidGoal-class.html#__init__,Method spade.Organization_new.NotValidName.__init__()=spade.Organization_new.NotValidName-class.html#__init__,Method spade.Organization_new.NotValidType.__init__()=spade.Organization_new.NotValidType-class.html#__init__,Method spade.Organization_new.NotValidUnit.__init__()=spade.Organization_new.NotValidUnit-class.html#__init__,Method spade.Organization_new.Organization_new.CreateRoomBehaviour.__init__()=spade.Organization_new.Organization_new.CreateRoomBehaviour-class.html#__init__,Method spade.Organization_new.Organization_new.CreateTeamBehaviour.__init__()=spade.Organization_new.Organization_new.CreateTeamBehaviour-class.html#__init__,Method spade.Organization_new.Organization_new.DestroyBehaviour.__init__()=spade.Organization_new.Organization_new.DestroyBehaviour-class.html#__init__,Method spade.Organization_new.Organization_new.GetRegistrationFormBehaviour.__init__()=spade.Organization_new.Organization_new.GetRegistrationFormBehaviour-class.html#__init__,Method spade.Organization_new.Organization_new.GetUnitInfoBehaviour.__init__()=spade.Organization_new.Organization_new.GetUnitInfoBehaviour-class.html#__init__,Method spade.Organization_new.Organization_new.GetUnitListBehaviour.__init__()=spade.Organization_new.Organization_new.GetUnitListBehaviour-class.html#__init__,Method spade.Organization_new.Organization_new.IsMemberBehaviour.__init__()=spade.Organization_new.Organization_new.IsMemberBehaviour-class.html#__init__,Method spade.Organization_new.Organization_new.MyJoinRoomBehaviour.__init__()=spade.Organization_new.Organization_new.MyJoinRoomBehaviour-class.html#__init__,Method spade.Organization_new.Organization_new.SendRegistrationFormBehaviour.__init__()=spade.Organization_new.Organization_new.SendRegistrationFormBehaviour-class.html#__init__,Method spade.Organization_new.Organization_new.TestRoomNameBehaviour.__init__()=spade.Organization_new.Organization_new.TestRoomNameBehaviour-class.html#__init__,Method spade.Organization_new.Organization_new.__init__()=spade.Organization_new.Organization_new-class.html#__init__,Method spade.Organization_new.PaswordNeeded.__init__()=spade.Organization_new.PaswordNeeded-class.html#__init__,Method spade.Organization_new.Unavailable.__init__()=spade.Organization_new.Unavailable-class.html#__init__,Method spade.Organization_new.UnavailableFunction.__init__()=spade.Organization_new.UnavailableFunction-class.html#__init__,Method spade.Platform.PlatformRestart.__init__()=spade.Platform.PlatformRestart-class.html#__init__,Method spade.Platform.SpadePlatform.RouteBehaviour.__init__()=spade.Platform.SpadePlatform.RouteBehaviour-class.html#__init__,Method spade.Platform.SpadePlatform.__init__()=spade.Platform.SpadePlatform-class.html#__init__,Method spade.RDF0Parser.RDF0Parser.__init__()=spade.RDF0Parser.RDF0Parser-class.html#__init__,Method spade.RPC.RPCClientBehaviour.__init__()=spade.RPC.RPCClientBehaviour-class.html#__init__,Method spade.ReceivedObject.ReceivedObject.__init__()=spade.ReceivedObject.ReceivedObject-class.html#__init__,Method spade.SIMBA.SIMBA.OutboxBehaviour.__init__()=spade.SIMBA.SIMBA.OutboxBehaviour-class.html#__init__,Method spade.SIMBA.SIMBA.__init__()=spade.SIMBA.SIMBA-class.html#__init__,Method spade.SL0Parser.SL0Parser.__init__()=spade.SL0Parser.SL0Parser-class.html#__init__,Method spade.SPARQLKB.SPARQLKB.__init__()=spade.SPARQLKB.SPARQLKB-class.html#__init__,Method spade.SWIKB.SWIKB.__init__()=spade.SWIKB.SWIKB-class.html#__init__,Method spade.SpadeConfigParser.ConfigParser.__init__()=spade.SpadeConfigParser.ConfigParser-class.html#__init__,Method spade.SpadeConfigParser.spadeXML.__init__()=spade.SpadeConfigParser.spadeXML-class.html#__init__,Method spade.SpadeConfigParser.spadeXMLHandler.__init__()=spade.SpadeConfigParser.spadeXMLHandler-class.html#__init__,Method spade.Unit.BanedUser.__init__()=spade.Unit.BanedUser-class.html#__init__,Method spade.Unit.CreationError.__init__()=spade.Unit.CreationError-class.html#__init__,Method spade.Unit.DestroyError.__init__()=spade.Unit.DestroyError-class.html#__init__,Method spade.Unit.JoinError.__init__()=spade.Unit.JoinError-class.html#__init__,Method spade.Unit.LastOwner.__init__()=spade.Unit.LastOwner-class.html#__init__,Method spade.Unit.LockedUnit.__init__()=spade.Unit.LockedUnit-class.html#__init__,Method spade.Unit.MaximumUsers.__init__()=spade.Unit.MaximumUsers-class.html#__init__,Method spade.Unit.MembersOnly.__init__()=spade.Unit.MembersOnly-class.html#__init__,Method spade.Unit.NickNameConflict.__init__()=spade.Unit.NickNameConflict-class.html#__init__,Method spade.Unit.NotAdmin.__init__()=spade.Unit.NotAdmin-class.html#__init__,Method spade.Unit.NotSupervisor.__init__()=spade.Unit.NotSupervisor-class.html#__init__,Method spade.Unit.NotValidGoal.__init__()=spade.Unit.NotValidGoal-class.html#__init__,Method spade.Unit.NotValidGoalChange.__init__()=spade.Unit.NotValidGoalChange-class.html#__init__,Method spade.Unit.NotValidName.__init__()=spade.Unit.NotValidName-class.html#__init__,Method spade.Unit.NotValidType.__init__()=spade.Unit.NotValidType-class.html#__init__,Method spade.Unit.NotValidUnit.__init__()=spade.Unit.NotValidUnit-class.html#__init__,Method spade.Unit.PaswordNeeded.__init__()=spade.Unit.PaswordNeeded-class.html#__init__,Method spade.Unit.Unavailable.__init__()=spade.Unit.Unavailable-class.html#__init__,Method spade.Unit.Unit.AddAdminBehaviour.__init__()=spade.Unit.Unit.AddAdminBehaviour-class.html#__init__,Method spade.Unit.Unit.AddBanAgentBehaviour.__init__()=spade.Unit.Unit.AddBanAgentBehaviour-class.html#__init__,Method spade.Unit.Unit.AddModeratorBehaviour.__init__()=spade.Unit.Unit.AddModeratorBehaviour-class.html#__init__,Method spade.Unit.Unit.AddOwnerBehaviour.__init__()=spade.Unit.Unit.AddOwnerBehaviour-class.html#__init__,Method spade.Unit.Unit.CreateRoomBehaviour.__init__()=spade.Unit.Unit.CreateRoomBehaviour-class.html#__init__,Method spade.Unit.Unit.DestroyBehaviour.__init__()=spade.Unit.Unit.DestroyBehaviour-class.html#__init__,Method spade.Unit.Unit.GetAdminListBehaviour.__init__()=spade.Unit.Unit.GetAdminListBehaviour-class.html#__init__,Method spade.Unit.Unit.GetBanAgentListBehaviour.__init__()=spade.Unit.Unit.GetBanAgentListBehaviour-class.html#__init__,Method spade.Unit.Unit.GetGoalBehaviour.__init__()=spade.Unit.Unit.GetGoalBehaviour-class.html#__init__,Method spade.Unit.Unit.GetInfoBehaviour.__init__()=spade.Unit.Unit.GetInfoBehaviour-class.html#__init__,Method spade.Unit.Unit.GetMaxAgentsBehaviour.__init__()=spade.Unit.Unit.GetMaxAgentsBehaviour-class.html#__init__,Method spade.Unit.Unit.GetMemberListBehaviour.__init__()=spade.Unit.Unit.GetMemberListBehaviour-class.html#__init__,Method spade.Unit.Unit.GetMinAgentsBehaviour.__init__()=spade.Unit.Unit.GetMinAgentsBehaviour-class.html#__init__,Method spade.Unit.Unit.GetModeratorListBehaviour.__init__()=spade.Unit.Unit.GetModeratorListBehaviour-class.html#__init__,Method spade.Unit.Unit.GetNumberOfAgentsBehaviour.__init__()=spade.Unit.Unit.GetNumberOfAgentsBehaviour-class.html#__init__,Method spade.Unit.Unit.GetOwnerListBehaviour.__init__()=spade.Unit.Unit.GetOwnerListBehaviour-class.html#__init__,Method spade.Unit.Unit.GiveVoiceBehaviour.__init__()=spade.Unit.Unit.GiveVoiceBehaviour-class.html#__init__,Method spade.Unit.Unit.KickAgentBehaviour.__init__()=spade.Unit.Unit.KickAgentBehaviour-class.html#__init__,Method spade.Unit.Unit.MyJoinRoomBehaviour.__init__()=spade.Unit.Unit.MyJoinRoomBehaviour-class.html#__init__,Method spade.Unit.Unit.PresenceBehaviour.MinAgentsBehaviour.__init__()=spade.Unit.Unit.PresenceBehaviour.MinAgentsBehaviour-class.html#__init__,Method spade.Unit.Unit.PresenceBehaviour.__init__()=spade.Unit.Unit.PresenceBehaviour-class.html#__init__,Method spade.Unit.Unit.RemoveAdminBehaviour.__init__()=spade.Unit.Unit.RemoveAdminBehaviour-class.html#__init__,Method spade.Unit.Unit.RemoveBanAgentBehaviour.__init__()=spade.Unit.Unit.RemoveBanAgentBehaviour-class.html#__init__,Method spade.Unit.Unit.RemoveModeratorBehaviour.__init__()=spade.Unit.Unit.RemoveModeratorBehaviour-class.html#__init__,Method spade.Unit.Unit.RemoveOwnerBehaviour.__init__()=spade.Unit.Unit.RemoveOwnerBehaviour-class.html#__init__,Method spade.Unit.Unit.RevokeVoiceBehaviour.__init__()=spade.Unit.Unit.RevokeVoiceBehaviour-class.html#__init__,Method spade.Unit.Unit.SendMessageBehaviour.__init__()=spade.Unit.Unit.SendMessageBehaviour-class.html#__init__,Method spade.Unit.Unit.SendPrivateMessageBehaviour.__init__()=spade.Unit.Unit.SendPrivateMessageBehaviour-class.html#__init__,Method spade.Unit.Unit.SetGoalBehaviour.__init__()=spade.Unit.Unit.SetGoalBehaviour-class.html#__init__,Method spade.Unit.Unit.SetMaxAgentsBehaviour.__init__()=spade.Unit.Unit.SetMaxAgentsBehaviour-class.html#__init__,Method spade.Unit.Unit.SetMinAgentsBehaviour.__init__()=spade.Unit.Unit.SetMinAgentsBehaviour-class.html#__init__,Method spade.Unit.Unit.TestRoomNameBehaviour.__init__()=spade.Unit.Unit.TestRoomNameBehaviour-class.html#__init__,Method spade.Unit.Unit.__init__()=spade.Unit.Unit-class.html#__init__,Method spade.Unit_new.BanedUser.__init__()=spade.Unit_new.BanedUser-class.html#__init__,Method spade.Unit_new.CreationError.__init__()=spade.Unit_new.CreationError-class.html#__init__,Method spade.Unit_new.DestroyError.__init__()=spade.Unit_new.DestroyError-class.html#__init__,Method spade.Unit_new.JoinError.__init__()=spade.Unit_new.JoinError-class.html#__init__,Method spade.Unit_new.LastOwner.__init__()=spade.Unit_new.LastOwner-class.html#__init__,Method spade.Unit_new.LockedUnit.__init__()=spade.Unit_new.LockedUnit-class.html#__init__,Method spade.Unit_new.MaximumUsers.__init__()=spade.Unit_new.MaximumUsers-class.html#__init__,Method spade.Unit_new.MembersOnly.__init__()=spade.Unit_new.MembersOnly-class.html#__init__,Method spade.Unit_new.NickNameConflict.__init__()=spade.Unit_new.NickNameConflict-class.html#__init__,Method spade.Unit_new.NotCreatePermision.__init__()=spade.Unit_new.NotCreatePermision-class.html#__init__,Method spade.Unit_new.NotSupervisor.__init__()=spade.Unit_new.NotSupervisor-class.html#__init__,Method spade.Unit_new.NotValidGoal.__init__()=spade.Unit_new.NotValidGoal-class.html#__init__,Method spade.Unit_new.NotValidGoalChange.__init__()=spade.Unit_new.NotValidGoalChange-class.html#__init__,Method spade.Unit_new.NotValidName.__init__()=spade.Unit_new.NotValidName-class.html#__init__,Method spade.Unit_new.NotValidType.__init__()=spade.Unit_new.NotValidType-class.html#__init__,Method spade.Unit_new.NotValidUnit.__init__()=spade.Unit_new.NotValidUnit-class.html#__init__,Method spade.Unit_new.PaswordNeeded.__init__()=spade.Unit_new.PaswordNeeded-class.html#__init__,Method spade.Unit_new.Unavailable.__init__()=spade.Unit_new.Unavailable-class.html#__init__,Method spade.Unit_new.Unit_new.AddAdminBehaviour.__init__()=spade.Unit_new.Unit_new.AddAdminBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.AddBanAgentBehaviour.__init__()=spade.Unit_new.Unit_new.AddBanAgentBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.AddModeratorBehaviour.__init__()=spade.Unit_new.Unit_new.AddModeratorBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.CreateRoomBehaviour.__init__()=spade.Unit_new.Unit_new.CreateRoomBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.DestroyBehaviour.__init__()=spade.Unit_new.Unit_new.DestroyBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.GetAdminListBehaviour.__init__()=spade.Unit_new.Unit_new.GetAdminListBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.GetBanAgentListBehaviour.__init__()=spade.Unit_new.Unit_new.GetBanAgentListBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.GetGoalBehaviour.__init__()=spade.Unit_new.Unit_new.GetGoalBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.GetInfoBehaviour.__init__()=spade.Unit_new.Unit_new.GetInfoBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.GetMaxAgentsBehaviour.__init__()=spade.Unit_new.Unit_new.GetMaxAgentsBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.GetMemberListBehaviour.__init__()=spade.Unit_new.Unit_new.GetMemberListBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.GetMinAgentsBehaviour.__init__()=spade.Unit_new.Unit_new.GetMinAgentsBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.GetModeratorListBehaviour.__init__()=spade.Unit_new.Unit_new.GetModeratorListBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.GetNumberOfAgentsBehaviour.__init__()=spade.Unit_new.Unit_new.GetNumberOfAgentsBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.GetOwnerListBehaviour.__init__()=spade.Unit_new.Unit_new.GetOwnerListBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.GiveVoiceBehaviour.__init__()=spade.Unit_new.Unit_new.GiveVoiceBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.KickAgentBehaviour.__init__()=spade.Unit_new.Unit_new.KickAgentBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.MyJoinRoomBehaviour.__init__()=spade.Unit_new.Unit_new.MyJoinRoomBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.PresenceBehaviour.MinAgentsBehaviour.__init__()=spade.Unit_new.Unit_new.PresenceBehaviour.MinAgentsBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.PresenceBehaviour.__init__()=spade.Unit_new.Unit_new.PresenceBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.RemoveAdminBehaviour.__init__()=spade.Unit_new.Unit_new.RemoveAdminBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.RemoveBanAgentBehaviour.__init__()=spade.Unit_new.Unit_new.RemoveBanAgentBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.RemoveModeratorBehaviour.__init__()=spade.Unit_new.Unit_new.RemoveModeratorBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.RevokeVoiceBehaviour.__init__()=spade.Unit_new.Unit_new.RevokeVoiceBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.SendMessageBehaviour.__init__()=spade.Unit_new.Unit_new.SendMessageBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.SendPrivateMessageBehaviour.__init__()=spade.Unit_new.Unit_new.SendPrivateMessageBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.SetGoalBehaviour.__init__()=spade.Unit_new.Unit_new.SetGoalBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.SetMaxAgentsBehaviour.__init__()=spade.Unit_new.Unit_new.SetMaxAgentsBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.SetMinAgentsBehaviour.__init__()=spade.Unit_new.Unit_new.SetMinAgentsBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.TestRoomNameBehaviour.__init__()=spade.Unit_new.Unit_new.TestRoomNameBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.__init__()=spade.Unit_new.Unit_new-class.html#__init__,Method spade.XMLCodec.XMLCodec.__init__()=spade.XMLCodec.XMLCodec-class.html#__init__,Method spade.XSBKB.XSBKB.__init__()=spade.XSBKB.XSBKB-class.html#__init__,Method spade.bdi.BDIBehaviour.__init__()=spade.bdi.BDIBehaviour-class.html#__init__,Method spade.bdi.Goal.__init__()=spade.bdi.Goal-class.html#__init__,Method spade.content.ContentObject.__init__()=spade.content.ContentObject-class.html#__init__,Method spade.dblite.Base.__init__()=spade.dblite.Base-class.html#__init__,Method spade.dblite.Index.__init__()=spade.dblite.Index-class.html#__init__,Method spade.fipa.ModifyAgentBehaviour.__init__()=spade.fipa.ModifyAgentBehaviour-class.html#__init__,Method spade.fipa.SearchAgentBehaviour.__init__()=spade.fipa.SearchAgentBehaviour-class.html#__init__,Method spade.fipa.deregisterServiceBehaviour.__init__()=spade.fipa.deregisterServiceBehaviour-class.html#__init__,Method spade.fipa.getPlatformInfoBehaviour.__init__()=spade.fipa.getPlatformInfoBehaviour-class.html#__init__,Method spade.fipa.modifyServiceBehaviour.__init__()=spade.fipa.modifyServiceBehaviour-class.html#__init__,Method spade.fipa.registerServiceBehaviour.__init__()=spade.fipa.registerServiceBehaviour-class.html#__init__,Method spade.fipa.searchServiceBehaviour.__init__()=spade.fipa.searchServiceBehaviour-class.html#__init__,Method spade.kb.KB.__init__()=spade.kb.KB-class.html#__init__,Method spade.kb.KBConfigurationFailed.__init__()=spade.kb.KBConfigurationFailed-class.html#__init__,Method spade.logic.Expr.__init__()=spade.logic.Expr-class.html#__init__,Method spade.logic.FolKB.__init__()=spade.logic.FolKB-class.html#__init__,Method spade.logic.KB.__init__()=spade.logic.KB-class.html#__init__,Method spade.logic.PropKB.__init__()=spade.logic.PropKB-class.html#__init__,Method spade.odict.odict.__init__()=spade.odict.odict-class.html#__init__,Method spade.peer2peer.RequestDiscoInfoBehav.__init__()=spade.peer2peer.RequestDiscoInfoBehav-class.html#__init__,Method spade.peer2peer.SendStreamInitiationBehav.__init__()=spade.peer2peer.SendStreamInitiationBehav-class.html#__init__,Method spade.pubsub.PubSub.__init__()=spade.pubsub.PubSub-class.html#__init__,Method spade.pubsub.PubSub._sendAndReceiveBehav.__init__()=spade.pubsub.PubSub._sendAndReceiveBehav-class.html#__init__,Method spade.pygooglechart.Axis.__init__()=spade.pygooglechart.Axis-class.html#__init__,Method spade.pygooglechart.BarChart.__init__()=spade.pygooglechart.BarChart-class.html#__init__,Method spade.pygooglechart.Chart.__init__()=spade.pygooglechart.Chart-class.html#__init__,Method spade.pygooglechart.ChartGrammar.__init__()=spade.pygooglechart.ChartGrammar-class.html#__init__,Method spade.pygooglechart.Data.__init__()=spade.pygooglechart.Data-class.html#__init__,Method spade.pygooglechart.GoogleOMeterChart.__init__()=spade.pygooglechart.GoogleOMeterChart-class.html#__init__,Method spade.pygooglechart.GroupedBarChart.__init__()=spade.pygooglechart.GroupedBarChart-class.html#__init__,Method spade.pygooglechart.LabelAxis.__init__()=spade.pygooglechart.LabelAxis-class.html#__init__,Method spade.pygooglechart.LineChart.__init__()=spade.pygooglechart.LineChart-class.html#__init__,Method spade.pygooglechart.MapChart.__init__()=spade.pygooglechart.MapChart-class.html#__init__,Method spade.pygooglechart.PieChart.__init__()=spade.pygooglechart.PieChart-class.html#__init__,Method spade.pygooglechart.QRChart.__init__()=spade.pygooglechart.QRChart-class.html#__init__,Method spade.pygooglechart.RangeAxis.__init__()=spade.pygooglechart.RangeAxis-class.html#__init__,Method spade.pyparsing.And.__init__()=spade.pyparsing.And-class.html#__init__,Method spade.pyparsing.CaselessLiteral.__init__()=spade.pyparsing.CaselessLiteral-class.html#__init__,Method spade.pyparsing.CharsNotIn.__init__()=spade.pyparsing.CharsNotIn-class.html#__init__,Method spade.pyparsing.Combine.__init__()=spade.pyparsing.Combine-class.html#__init__,Method spade.pyparsing.Dict.__init__()=spade.pyparsing.Dict-class.html#__init__,Method spade.pyparsing.Each.__init__()=spade.pyparsing.Each-class.html#__init__,Method spade.pyparsing.Empty.__init__()=spade.pyparsing.Empty-class.html#__init__,Method spade.pyparsing.FollowedBy.__init__()=spade.pyparsing.FollowedBy-class.html#__init__,Method spade.pyparsing.Forward.__init__()=spade.pyparsing.Forward-class.html#__init__,Method spade.pyparsing.GoToColumn.__init__()=spade.pyparsing.GoToColumn-class.html#__init__,Method spade.pyparsing.Group.__init__()=spade.pyparsing.Group-class.html#__init__,Method spade.pyparsing.Keyword.__init__()=spade.pyparsing.Keyword-class.html#__init__,Method spade.pyparsing.LineEnd.__init__()=spade.pyparsing.LineEnd-class.html#__init__,Method spade.pyparsing.LineStart.__init__()=spade.pyparsing.LineStart-class.html#__init__,Method spade.pyparsing.Literal.__init__()=spade.pyparsing.Literal-class.html#__init__,Method spade.pyparsing.MatchFirst.__init__()=spade.pyparsing.MatchFirst-class.html#__init__,Method spade.pyparsing.NoMatch.__init__()=spade.pyparsing.NoMatch-class.html#__init__,Method spade.pyparsing.NotAny.__init__()=spade.pyparsing.NotAny-class.html#__init__,Method spade.pyparsing.Optional.__init__()=spade.pyparsing.Optional-class.html#__init__,Method spade.pyparsing.Or.__init__()=spade.pyparsing.Or-class.html#__init__,Method spade.pyparsing.ParseBaseException.__init__()=spade.pyparsing.ParseBaseException-class.html#__init__,Method spade.pyparsing.ParseElementEnhance.__init__()=spade.pyparsing.ParseElementEnhance-class.html#__init__,Method spade.pyparsing.ParseExpression.__init__()=spade.pyparsing.ParseExpression-class.html#__init__,Method spade.pyparsing.ParseResults.__init__()=spade.pyparsing.ParseResults-class.html#__init__,Method spade.pyparsing.ParserElement.__init__()=spade.pyparsing.ParserElement-class.html#__init__,Method spade.pyparsing.PositionToken.__init__()=spade.pyparsing.PositionToken-class.html#__init__,Method spade.pyparsing.RecursiveGrammarException.__init__()=spade.pyparsing.RecursiveGrammarException-class.html#__init__,Method spade.pyparsing.SkipTo.__init__()=spade.pyparsing.SkipTo-class.html#__init__,Method spade.pyparsing.StringEnd.__init__()=spade.pyparsing.StringEnd-class.html#__init__,Method spade.pyparsing.StringStart.__init__()=spade.pyparsing.StringStart-class.html#__init__,Method spade.pyparsing.Token.__init__()=spade.pyparsing.Token-class.html#__init__,Method spade.pyparsing.TokenConverter.__init__()=spade.pyparsing.TokenConverter-class.html#__init__,Method spade.pyparsing.Upcase.__init__()=spade.pyparsing.Upcase-class.html#__init__,Method spade.pyparsing.White.__init__()=spade.pyparsing.White-class.html#__init__,Method spade.pyparsing.Word.__init__()=spade.pyparsing.Word-class.html#__init__,Method spade.pyparsing.ZeroOrMore.__init__()=spade.pyparsing.ZeroOrMore-class.html#__init__,Method spade.pyratemp.FileLoader.__init__()=spade.pyratemp.FileLoader-class.html#__init__,Method spade.pyratemp.Parser.__init__()=spade.pyratemp.Parser-class.html#__init__,Method spade.pyratemp.PseudoSandbox.__init__()=spade.pyratemp.PseudoSandbox-class.html#__init__,Method spade.pyratemp.Renderer.__init__()=spade.pyratemp.Renderer-class.html#__init__,Method spade.pyratemp.StringLoader.__init__()=spade.pyratemp.StringLoader-class.html#__init__,Method spade.pyratemp.Template.__init__()=spade.pyratemp.Template-class.html#__init__,Method spade.pyratemp.TemplateBase.__init__()=spade.pyratemp.TemplateBase-class.html#__init__,Method spade.pyratemp.TemplateEval.__init__()=spade.pyratemp.TemplateEval-class.html#__init__,Method spade.pyratemp.TemplateParseError.__init__()=spade.pyratemp.TemplateParseError-class.html#__init__,Method spade.pyxf.eclipse.__init__()=spade.pyxf.eclipse-class.html#__init__,Method spade.pyxf.flora2.__init__()=spade.pyxf.flora2-class.html#__init__,Method spade.pyxf.swipl.__init__()=spade.pyxf.swipl-class.html#__init__,Method spade.pyxf.xsb.__init__()=spade.pyxf.xsb-class.html#__init__,Method spade.socialnetwork.SocialItem.__init__()=spade.socialnetwork.SocialItem-class.html#__init__,Method spade.spade_backend.SpadeBackend.__init__()=spade.spade_backend.SpadeBackend-class.html#__init__,Method spade.tbcbp.Case.__init__()=spade.tbcbp.Case-class.html#__init__,Method spade.tbcbp.CaseDB.__init__()=spade.tbcbp.CaseDB-class.html#__init__,Method spade.tbcbp.Plan.__init__()=spade.tbcbp.Plan-class.html#__init__,Method spade.tbcbp.TBCBP.__init__()=spade.tbcbp.TBCBP-class.html#__init__,Method spade.wui.WUI.__init__()=spade.wui.WUI-class.html#__init__,Method spade.xmpp.auth.Bind.__init__()=spade.xmpp.auth.Bind-class.html#__init__,Method spade.xmpp.auth.ComponentBind.__init__()=spade.xmpp.auth.ComponentBind-class.html#__init__,Method spade.xmpp.auth.NonSASL.__init__()=spade.xmpp.auth.NonSASL-class.html#__init__,Method spade.xmpp.auth.SASL.__init__()=spade.xmpp.auth.SASL-class.html#__init__,Method spade.xmpp.browser.Browser.__init__()=spade.xmpp.browser.Browser-class.html#__init__,Method spade.xmpp.client.CommonClient.__init__()=spade.xmpp.client.CommonClient-class.html#__init__,Method spade.xmpp.client.Component.__init__()=spade.xmpp.client.Component-class.html#__init__,Method spade.xmpp.client.PlugIn.__init__()=spade.xmpp.client.PlugIn-class.html#__init__,Method spade.xmpp.commands.Command_Handler_Prototype.__init__()=spade.xmpp.commands.Command_Handler_Prototype-class.html#__init__,Method spade.xmpp.commands.Commands.__init__()=spade.xmpp.commands.Commands-class.html#__init__,Method spade.xmpp.commands.TestCommand.__init__()=spade.xmpp.commands.TestCommand-class.html#__init__,Method spade.xmpp.debug.Debug.__init__()=spade.xmpp.debug.Debug-class.html#__init__,Method spade.xmpp.debug.NoDebug.__init__()=spade.xmpp.debug.NoDebug-class.html#__init__,Method spade.xmpp.dispatcher.Dispatcher.__init__()=spade.xmpp.dispatcher.Dispatcher-class.html#__init__,Method spade.xmpp.filetransfer.IBB.__init__()=spade.xmpp.filetransfer.IBB-class.html#__init__,Method spade.xmpp.protocol.DataField.__init__()=spade.xmpp.protocol.DataField-class.html#__init__,Method spade.xmpp.protocol.DataForm.__init__()=spade.xmpp.protocol.DataForm-class.html#__init__,Method spade.xmpp.protocol.Error.__init__()=spade.xmpp.protocol.Error-class.html#__init__,Method spade.xmpp.protocol.ErrorNode.__init__()=spade.xmpp.protocol.ErrorNode-class.html#__init__,Method spade.xmpp.protocol.Iq.__init__()=spade.xmpp.protocol.Iq-class.html#__init__,Method spade.xmpp.protocol.JID.__init__()=spade.xmpp.protocol.JID-class.html#__init__,Method spade.xmpp.protocol.Message.__init__()=spade.xmpp.protocol.Message-class.html#__init__,Method spade.xmpp.protocol.Presence.__init__()=spade.xmpp.protocol.Presence-class.html#__init__,Method spade.xmpp.protocol.Protocol.__init__()=spade.xmpp.protocol.Protocol-class.html#__init__,Method spade.xmpp.roster.Roster.__init__()=spade.xmpp.roster.Roster-class.html#__init__,Method spade.xmpp.session.Session.__init__()=spade.xmpp.session.Session-class.html#__init__,Method spade.xmpp.simplexml.Node.__init__()=spade.xmpp.simplexml.Node-class.html#__init__,Method spade.xmpp.simplexml.NodeBuilder.__init__()=spade.xmpp.simplexml.NodeBuilder-class.html#__init__,Method spade.xmpp.simplexml.T.__init__()=spade.xmpp.simplexml.T-class.html#__init__,Method spade.xmpp.transports.HTTPPROXYsocket.__init__()=spade.xmpp.transports.HTTPPROXYsocket-class.html#__init__,Method spade.xmpp.transports.TCPsocket.__init__()=spade.xmpp.transports.TCPsocket-class.html#__init__,Method spade.xmpp.transports.error.__init__()=spade.xmpp.transports.error-class.html#__init__,Method spade.xmppd.modules.config.Config.__init__()=spade.xmppd.modules.config.Config-class.html#__init__,Method spade.xmppd.modules.config.xmppdXML.__init__()=spade.xmppd.modules.config.xmppdXML-class.html#__init__,Method spade.xmppd.modules.config.xmppdXMLHandler.__init__()=spade.xmppd.modules.config.xmppdXMLHandler-class.html#__init__,Method spade.xmppd.modules.muc.BadPassword.__init__()=spade.xmppd.modules.muc.BadPassword-class.html#__init__,Method spade.xmppd.modules.muc.Blacklisted.__init__()=spade.xmppd.modules.muc.Blacklisted-class.html#__init__,Method spade.xmppd.modules.muc.MaxUsers.__init__()=spade.xmppd.modules.muc.MaxUsers-class.html#__init__,Method spade.xmppd.modules.muc.NickLockedDown.__init__()=spade.xmppd.modules.muc.NickLockedDown-class.html#__init__,Method spade.xmppd.modules.muc.NoVoice.__init__()=spade.xmppd.modules.muc.NoVoice-class.html#__init__,Method spade.xmppd.modules.muc.NotAMember.__init__()=spade.xmppd.modules.muc.NotAMember-class.html#__init__,Method spade.xmppd.modules.muc.Participant.__init__()=spade.xmppd.modules.muc.Participant-class.html#__init__,Method spade.xmppd.modules.muc.Room.__init__()=spade.xmppd.modules.muc.Room-class.html#__init__,Method spade.xmppd.modules.muc.SerializableRoom.__init__()=spade.xmppd.modules.muc.SerializableRoom-class.html#__init__,Method spade.xmppd.modules.pubsub.PSNode.__init__()=spade.xmppd.modules.pubsub.PSNode-class.html#__init__,Method spade.xmppd.modules.wq.Conflict.__init__()=spade.xmppd.modules.wq.Conflict-class.html#__init__,Method spade.xmppd.modules.wq.Group.__init__()=spade.xmppd.modules.wq.Group-class.html#__init__,Method spade.xmppd.modules.wq.ItemNotFound.__init__()=spade.xmppd.modules.wq.ItemNotFound-class.html#__init__,Method spade.xmppd.xmppd.RPC_Client.__init__()=spade.xmppd.xmppd.RPC_Client-class.html#__init__,Method spade.xmppd.xmppd.Server.__init__()=spade.xmppd.xmppd.Server-class.html#__init__,Method spade.xmppd.xmppd.Session.__init__()=spade.xmppd.xmppd.Session-class.html#__init__,Method spade.xmppd.xmppd.Session_Dummy.Stream.__init__()=spade.xmppd.xmppd.Session_Dummy.Stream-class.html#__init__,Method spade.xmppd.xmppd.Session_Dummy.__init__()=spade.xmppd.xmppd.Session_Dummy-class.html#__init__,Method spade.xmppd.xmppd.Socker_client.__init__()=spade.xmppd.xmppd.Socker_client-class.html#__init__,Method spade.xmppd.xmppd.fake_select.__init__()=spade.xmppd.xmppd.fake_select-class.html#__init__,Method spade.xmppd.xmppd.fake_select.poll.__init__()=spade.xmppd.xmppd.fake_select.poll-class.html#__init__,Method spade.xmppd.xmppd.get_input.__init__()=spade.xmppd.xmppd.get_input-class.html#__init__,Method spade.xmppd.xmppd.localizer.__init__()=spade.xmppd.xmppd.localizer-class.html#__init__,Method spade.xmppd.xmppd.multisession_manager.__init__()=spade.xmppd.xmppd.multisession_manager-class.html#__init__,Method spade.xmppd.xmppd.multisession_manager.multisession_thread.__init__()=spade.xmppd.xmppd.multisession_manager.multisession_thread-class.html#__init__"><a title="spade.ACLMessage.ACLMessage.__init__
spade.ACLParser.ACLParser.__init__
spade.ACLParser.ACLxmlParser.__init__
spade.AID.aid.__init__
spade.AMS.AMS.DefaultBehaviour.__init__
spade.AMS.AMS.ModifyBehaviour.__init__
spade.AMS.AMS.PlatformBehaviour.__init__
spade.AMS.AMS.RegisterBehaviour.__init__
spade.AMS.AMS.SearchBehaviour.__init__
spade.AMS.AMS.__init__
spade.AMS.AmsAgentDescription.__init__
spade.Agent.AbstractAgent.__init__
spade.Agent.Agent.__init__
spade.Agent.PlatformAgent.__init__
spade.Agent.jabberProcess.__init__
spade.BasicFipaDateTime.BasicFipaDateTime.__init__
spade.Behaviour.ACLTemplate.__init__
spade.Behaviour.ANDTemplate.__init__
spade.Behaviour.Behaviour.__init__
spade.Behaviour.BehaviourTemplate.__init__
spade.Behaviour.EventBehaviour.__init__
spade.Behaviour.FSMBehaviour.__init__
spade.Behaviour.MessageTemplate.__init__
spade.Behaviour.NOTTemplate.__init__
spade.Behaviour.ORTemplate.__init__
spade.Behaviour.OneShotBehaviour.__init__
spade.Behaviour.PeriodicBehaviour.__init__
spade.Behaviour.TimeOutBehaviour.__init__
spade.Behaviour.XORTemplate.__init__
spade.DF.DF.DefaultBehaviour.__init__
spade.DF.DF.ModifyBehaviour.__init__
spade.DF.DF.RegisterBehaviour.__init__
spade.DF.DF.SearchBehaviour.__init__
spade.DF.DF.__init__
spade.DF.DfAgentDescription.__init__
spade.DF.Service.__init__
spade.DF.ServiceDescription.__init__
spade.ECLiPSeKB.ECLiPSeKB.__init__
spade.Envelope.Envelope.__init__
spade.FIPAMessage.FipaMessage.__init__
spade.Flora2KB.Flora2KB.__init__
spade.MTP.MTP.__init__
spade.MessageReceiver.MessageReceiver.__init__
spade.Organization.BanedUser.__init__
spade.Organization.CreationError.__init__
spade.Organization.DestroyError.__init__
spade.Organization.JoinError.__init__
spade.Organization.LastOwner.__init__
spade.Organization.LockedOrganization.__init__
spade.Organization.MaximumUsers.__init__
spade.Organization.MemberOfFederation.__init__
spade.Organization.MembersOnly.__init__
spade.Organization.NickNameConflict.__init__
spade.Organization.NotOwner.__init__
spade.Organization.NotSupervisor.__init__
spade.Organization.NotValidGoal.__init__
spade.Organization.NotValidName.__init__
spade.Organization.NotValidType.__init__
spade.Organization.NotValidUnit.__init__
spade.Organization.Organization.CreateRoomBehaviour.__init__
spade.Organization.Organization.CreateTeamBehaviour.__init__
spade.Organization.Organization.DestroyBehaviour.__init__
spade.Organization.Organization.GetRegistrationFormBehaviour.__init__
spade.Organization.Organization.GetUnitInfoBehaviour.__init__
spade.Organization.Organization.GetUnitListBehaviour.__init__
spade.Organization.Organization.IsMemberBehaviour.__init__
spade.Organization.Organization.MyJoinRoomBehaviour.__init__
spade.Organization.Organization.SendRegistrationFormBehaviour.__init__
spade.Organization.Organization.TestRoomNameBehaviour.__init__
spade.Organization.Organization.__init__
spade.Organization.PaswordNeeded.__init__
spade.Organization.Unavailable.__init__
spade.Organization.UnavailableFunction.__init__
spade.Organization_new.BanedUser.__init__
spade.Organization_new.CreationError.__init__
spade.Organization_new.DestroyError.__init__
spade.Organization_new.JoinError.__init__
spade.Organization_new.LastOwner.__init__
spade.Organization_new.LockedOrganization.__init__
spade.Organization_new.MaximumUsers.__init__
spade.Organization_new.MemberOfFederation.__init__
spade.Organization_new.MembersOnly.__init__
spade.Organization_new.NickNameConflict.__init__
spade.Organization_new.NotCreatePermision.__init__
spade.Organization_new.NotSupervisor.__init__
spade.Organization_new.NotValidGoal.__init__
spade.Organization_new.NotValidName.__init__
spade.Organization_new.NotValidType.__init__
spade.Organization_new.NotValidUnit.__init__
spade.Organization_new.Organization_new.CreateRoomBehaviour.__init__
spade.Organization_new.Organization_new.CreateTeamBehaviour.__init__
spade.Organization_new.Organization_new.DestroyBehaviour.__init__
spade.Organization_new.Organization_new.GetRegistrationFormBehaviour.__init__
spade.Organization_new.Organization_new.GetUnitInfoBehaviour.__init__
spade.Organization_new.Organization_new.GetUnitListBehaviour.__init__
spade.Organization_new.Organization_new.IsMemberBehaviour.__init__
spade.Organization_new.Organization_new.MyJoinRoomBehaviour.__init__
spade.Organization_new.Organization_new.SendRegistrationFormBehaviour.__init__
spade.Organization_new.Organization_new.TestRoomNameBehaviour.__init__
spade.Organization_new.Organization_new.__init__
spade.Organization_new.PaswordNeeded.__init__
spade.Organization_new.Unavailable.__init__
spade.Organization_new.UnavailableFunction.__init__
spade.Platform.PlatformRestart.__init__
spade.Platform.SpadePlatform.RouteBehaviour.__init__
spade.Platform.SpadePlatform.__init__
spade.RDF0Parser.RDF0Parser.__init__
spade.RPC.RPCClientBehaviour.__init__
spade.ReceivedObject.ReceivedObject.__init__
spade.SIMBA.SIMBA.OutboxBehaviour.__init__
spade.SIMBA.SIMBA.__init__
spade.SL0Parser.SL0Parser.__init__
spade.SPARQLKB.SPARQLKB.__init__
spade.SWIKB.SWIKB.__init__
spade.SpadeConfigParser.ConfigParser.__init__
spade.SpadeConfigParser.spadeXML.__init__
spade.SpadeConfigParser.spadeXMLHandler.__init__
spade.Unit.BanedUser.__init__
spade.Unit.CreationError.__init__
spade.Unit.DestroyError.__init__
spade.Unit.JoinError.__init__
spade.Unit.LastOwner.__init__
spade.Unit.LockedUnit.__init__
spade.Unit.MaximumUsers.__init__
spade.Unit.MembersOnly.__init__
spade.Unit.NickNameConflict.__init__
spade.Unit.NotAdmin.__init__
spade.Unit.NotSupervisor.__init__
spade.Unit.NotValidGoal.__init__
spade.Unit.NotValidGoalChange.__init__
spade.Unit.NotValidName.__init__
spade.Unit.NotValidType.__init__
spade.Unit.NotValidUnit.__init__
spade.Unit.PaswordNeeded.__init__
spade.Unit.Unavailable.__init__
spade.Unit.Unit.AddAdminBehaviour.__init__
spade.Unit.Unit.AddBanAgentBehaviour.__init__
spade.Unit.Unit.AddModeratorBehaviour.__init__
spade.Unit.Unit.AddOwnerBehaviour.__init__
spade.Unit.Unit.CreateRoomBehaviour.__init__
spade.Unit.Unit.DestroyBehaviour.__init__
spade.Unit.Unit.GetAdminListBehaviour.__init__
spade.Unit.Unit.GetBanAgentListBehaviour.__init__
spade.Unit.Unit.GetGoalBehaviour.__init__
spade.Unit.Unit.GetInfoBehaviour.__init__
spade.Unit.Unit.GetMaxAgentsBehaviour.__init__
spade.Unit.Unit.GetMemberListBehaviour.__init__
spade.Unit.Unit.GetMinAgentsBehaviour.__init__
spade.Unit.Unit.GetModeratorListBehaviour.__init__
spade.Unit.Unit.GetNumberOfAgentsBehaviour.__init__
spade.Unit.Unit.GetOwnerListBehaviour.__init__
spade.Unit.Unit.GiveVoiceBehaviour.__init__
spade.Unit.Unit.KickAgentBehaviour.__init__
spade.Unit.Unit.MyJoinRoomBehaviour.__init__
spade.Unit.Unit.PresenceBehaviour.MinAgentsBehaviour.__init__
spade.Unit.Unit.PresenceBehaviour.__init__
spade.Unit.Unit.RemoveAdminBehaviour.__init__
spade.Unit.Unit.RemoveBanAgentBehaviour.__init__
spade.Unit.Unit.RemoveModeratorBehaviour.__init__
spade.Unit.Unit.RemoveOwnerBehaviour.__init__
spade.Unit.Unit.RevokeVoiceBehaviour.__init__
spade.Unit.Unit.SendMessageBehaviour.__init__
spade.Unit.Unit.SendPrivateMessageBehaviour.__init__
spade.Unit.Unit.SetGoalBehaviour.__init__
spade.Unit.Unit.SetMaxAgentsBehaviour.__init__
spade.Unit.Unit.SetMinAgentsBehaviour.__init__
spade.Unit.Unit.TestRoomNameBehaviour.__init__
spade.Unit.Unit.__init__
spade.Unit_new.BanedUser.__init__
spade.Unit_new.CreationError.__init__
spade.Unit_new.DestroyError.__init__
spade.Unit_new.JoinError.__init__
spade.Unit_new.LastOwner.__init__
spade.Unit_new.LockedUnit.__init__
spade.Unit_new.MaximumUsers.__init__
spade.Unit_new.MembersOnly.__init__
spade.Unit_new.NickNameConflict.__init__
spade.Unit_new.NotCreatePermision.__init__
spade.Unit_new.NotSupervisor.__init__
spade.Unit_new.NotValidGoal.__init__
spade.Unit_new.NotValidGoalChange.__init__
spade.Unit_new.NotValidName.__init__
spade.Unit_new.NotValidType.__init__
spade.Unit_new.NotValidUnit.__init__
spade.Unit_new.PaswordNeeded.__init__
spade.Unit_new.Unavailable.__init__
spade.Unit_new.Unit_new.AddAdminBehaviour.__init__
spade.Unit_new.Unit_new.AddBanAgentBehaviour.__init__
spade.Unit_new.Unit_new.AddModeratorBehaviour.__init__
spade.Unit_new.Unit_new.CreateRoomBehaviour.__init__
spade.Unit_new.Unit_new.DestroyBehaviour.__init__
spade.Unit_new.Unit_new.GetAdminListBehaviour.__init__
spade.Unit_new.Unit_new.GetBanAgentListBehaviour.__init__
spade.Unit_new.Unit_new.GetGoalBehaviour.__init__
spade.Unit_new.Unit_new.GetInfoBehaviour.__init__
spade.Unit_new.Unit_new.GetMaxAgentsBehaviour.__init__
spade.Unit_new.Unit_new.GetMemberListBehaviour.__init__
spade.Unit_new.Unit_new.GetMinAgentsBehaviour.__init__
spade.Unit_new.Unit_new.GetModeratorListBehaviour.__init__
spade.Unit_new.Unit_new.GetNumberOfAgentsBehaviour.__init__
spade.Unit_new.Unit_new.GetOwnerListBehaviour.__init__
spade.Unit_new.Unit_new.GiveVoiceBehaviour.__init__
spade.Unit_new.Unit_new.KickAgentBehaviour.__init__
spade.Unit_new.Unit_new.MyJoinRoomBehaviour.__init__
spade.Unit_new.Unit_new.PresenceBehaviour.MinAgentsBehaviour.__init__
spade.Unit_new.Unit_new.PresenceBehaviour.__init__
spade.Unit_new.Unit_new.RemoveAdminBehaviour.__init__
spade.Unit_new.Unit_new.RemoveBanAgentBehaviour.__init__
spade.Unit_new.Unit_new.RemoveModeratorBehaviour.__init__
spade.Unit_new.Unit_new.RevokeVoiceBehaviour.__init__
spade.Unit_new.Unit_new.SendMessageBehaviour.__init__
spade.Unit_new.Unit_new.SendPrivateMessageBehaviour.__init__
spade.Unit_new.Unit_new.SetGoalBehaviour.__init__
spade.Unit_new.Unit_new.SetMaxAgentsBehaviour.__init__
spade.Unit_new.Unit_new.SetMinAgentsBehaviour.__init__
spade.Unit_new.Unit_new.TestRoomNameBehaviour.__init__
spade.Unit_new.Unit_new.__init__
spade.XMLCodec.XMLCodec.__init__
spade.XSBKB.XSBKB.__init__
spade.bdi.BDIBehaviour.__init__
spade.bdi.Goal.__init__
spade.content.ContentObject.__init__
spade.dblite.Base.__init__
spade.dblite.Index.__init__
spade.fipa.ModifyAgentBehaviour.__init__
spade.fipa.SearchAgentBehaviour.__init__
spade.fipa.deregisterServiceBehaviour.__init__
spade.fipa.getPlatformInfoBehaviour.__init__
spade.fipa.modifyServiceBehaviour.__init__
spade.fipa.registerServiceBehaviour.__init__
spade.fipa.searchServiceBehaviour.__init__
spade.kb.KB.__init__
spade.kb.KBConfigurationFailed.__init__
spade.logic.Expr.__init__
spade.logic.FolKB.__init__
spade.logic.KB.__init__
spade.logic.PropKB.__init__
spade.odict.odict.__init__
spade.peer2peer.RequestDiscoInfoBehav.__init__
spade.peer2peer.SendStreamInitiationBehav.__init__
spade.pubsub.PubSub.__init__
spade.pubsub.PubSub._sendAndReceiveBehav.__init__
spade.pygooglechart.Axis.__init__
spade.pygooglechart.BarChart.__init__
spade.pygooglechart.Chart.__init__
spade.pygooglechart.ChartGrammar.__init__
spade.pygooglechart.Data.__init__
spade.pygooglechart.GoogleOMeterChart.__init__
spade.pygooglechart.GroupedBarChart.__init__
spade.pygooglechart.LabelAxis.__init__
spade.pygooglechart.LineChart.__init__
spade.pygooglechart.MapChart.__init__
spade.pygooglechart.PieChart.__init__
spade.pygooglechart.QRChart.__init__
spade.pygooglechart.RangeAxis.__init__
spade.pyparsing.And.__init__
spade.pyparsing.CaselessLiteral.__init__
spade.pyparsing.CharsNotIn.__init__
spade.pyparsing.Combine.__init__
spade.pyparsing.Dict.__init__
spade.pyparsing.Each.__init__
spade.pyparsing.Empty.__init__
spade.pyparsing.FollowedBy.__init__
spade.pyparsing.Forward.__init__
spade.pyparsing.GoToColumn.__init__
spade.pyparsing.Group.__init__
spade.pyparsing.Keyword.__init__
spade.pyparsing.LineEnd.__init__
spade.pyparsing.LineStart.__init__
spade.pyparsing.Literal.__init__
spade.pyparsing.MatchFirst.__init__
spade.pyparsing.NoMatch.__init__
spade.pyparsing.NotAny.__init__
spade.pyparsing.Optional.__init__
spade.pyparsing.Or.__init__
spade.pyparsing.ParseBaseException.__init__
spade.pyparsing.ParseElementEnhance.__init__
spade.pyparsing.ParseExpression.__init__
spade.pyparsing.ParseResults.__init__
spade.pyparsing.ParserElement.__init__
spade.pyparsing.PositionToken.__init__
spade.pyparsing.RecursiveGrammarException.__init__
spade.pyparsing.SkipTo.__init__
spade.pyparsing.StringEnd.__init__
spade.pyparsing.StringStart.__init__
spade.pyparsing.Token.__init__
spade.pyparsing.TokenConverter.__init__
spade.pyparsing.Upcase.__init__
spade.pyparsing.White.__init__
spade.pyparsing.Word.__init__
spade.pyparsing.ZeroOrMore.__init__
spade.pyratemp.FileLoader.__init__
spade.pyratemp.Parser.__init__
spade.pyratemp.PseudoSandbox.__init__
spade.pyratemp.Renderer.__init__
spade.pyratemp.StringLoader.__init__
spade.pyratemp.Template.__init__
spade.pyratemp.TemplateBase.__init__
spade.pyratemp.TemplateEval.__init__
spade.pyratemp.TemplateParseError.__init__
spade.pyxf.eclipse.__init__
spade.pyxf.flora2.__init__
spade.pyxf.swipl.__init__
spade.pyxf.xsb.__init__
spade.socialnetwork.SocialItem.__init__
spade.spade_backend.SpadeBackend.__init__
spade.tbcbp.Case.__init__
spade.tbcbp.CaseDB.__init__
spade.tbcbp.Plan.__init__
spade.tbcbp.TBCBP.__init__
spade.wui.WUI.__init__
spade.xmpp.auth.Bind.__init__
spade.xmpp.auth.ComponentBind.__init__
spade.xmpp.auth.NonSASL.__init__
spade.xmpp.auth.SASL.__init__
spade.xmpp.browser.Browser.__init__
spade.xmpp.client.CommonClient.__init__
spade.xmpp.client.Component.__init__
spade.xmpp.client.PlugIn.__init__
spade.xmpp.commands.Command_Handler_Prototype.__init__
spade.xmpp.commands.Commands.__init__
spade.xmpp.commands.TestCommand.__init__
spade.xmpp.debug.Debug.__init__
spade.xmpp.debug.NoDebug.__init__
spade.xmpp.dispatcher.Dispatcher.__init__
spade.xmpp.filetransfer.IBB.__init__
spade.xmpp.protocol.DataField.__init__
spade.xmpp.protocol.DataForm.__init__
spade.xmpp.protocol.Error.__init__
spade.xmpp.protocol.ErrorNode.__init__
spade.xmpp.protocol.Iq.__init__
spade.xmpp.protocol.JID.__init__
spade.xmpp.protocol.Message.__init__
spade.xmpp.protocol.Presence.__init__
spade.xmpp.protocol.Protocol.__init__
spade.xmpp.roster.Roster.__init__
spade.xmpp.session.Session.__init__
spade.xmpp.simplexml.Node.__init__
spade.xmpp.simplexml.NodeBuilder.__init__
spade.xmpp.simplexml.T.__init__
spade.xmpp.transports.HTTPPROXYsocket.__init__
spade.xmpp.transports.TCPsocket.__init__
spade.xmpp.transports.error.__init__
spade.xmppd.modules.config.Config.__init__
spade.xmppd.modules.config.xmppdXML.__init__
spade.xmppd.modules.config.xmppdXMLHandler.__init__
spade.xmppd.modules.muc.BadPassword.__init__
spade.xmppd.modules.muc.Blacklisted.__init__
spade.xmppd.modules.muc.MaxUsers.__init__
spade.xmppd.modules.muc.NickLockedDown.__init__
spade.xmppd.modules.muc.NoVoice.__init__
spade.xmppd.modules.muc.NotAMember.__init__
spade.xmppd.modules.muc.Participant.__init__
spade.xmppd.modules.muc.Room.__init__
spade.xmppd.modules.muc.SerializableRoom.__init__
spade.xmppd.modules.pubsub.PSNode.__init__
spade.xmppd.modules.wq.Conflict.__init__
spade.xmppd.modules.wq.Group.__init__
spade.xmppd.modules.wq.ItemNotFound.__init__
spade.xmppd.xmppd.RPC_Client.__init__
spade.xmppd.xmppd.Server.__init__
spade.xmppd.xmppd.Session.__init__
spade.xmppd.xmppd.Session_Dummy.Stream.__init__
spade.xmppd.xmppd.Session_Dummy.__init__
spade.xmppd.xmppd.Socker_client.__init__
spade.xmppd.xmppd.fake_select.__init__
spade.xmppd.xmppd.fake_select.poll.__init__
spade.xmppd.xmppd.get_input.__init__
spade.xmppd.xmppd.localizer.__init__
spade.xmppd.xmppd.multisession_manager.__init__
spade.xmppd.xmppd.multisession_manager.multisession_thread.__init__" class="py-name" href="#" onclick="return doclink('link-15', '__init__', 'link-15');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-name">period</tt><tt class="py-op">)</tt> </tt>
<a name="L63"></a><tt class="py-lineno"> 63</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">goals</tt>           <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> <tt class="py-comment"># active goals</tt> </tt>
<a name="L64"></a><tt class="py-lineno"> 64</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">plans</tt>           <tt class="py-op">=</tt> <tt id="link-16" class="py-name" targets="Class spade.bdi.PlanList=spade.bdi.PlanList-class.html"><a title="spade.bdi.PlanList" class="py-name" href="#" onclick="return doclink('link-16', 'PlanList', 'link-16');">PlanList</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-comment"># plan library</tt> </tt>
<a name="L65"></a><tt class="py-lineno"> 65</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">intentions</tt>      <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> <tt class="py-comment"># selected plans for execution</tt> </tt>
<a name="L66"></a><tt class="py-lineno"> 66</tt>  <tt class="py-line">        <tt class="py-comment">#self.services        = [] # services offered by the agent</tt> </tt>
<a name="L67"></a><tt class="py-lineno"> 67</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-17" class="py-name" targets="Class spade.tbcbp.TBCBP=spade.tbcbp.TBCBP-class.html"><a title="spade.tbcbp.TBCBP" class="py-name" href="#" onclick="return doclink('link-17', 'TBCBP', 'link-17');">TBCBP</a></tt>           <tt class="py-op">=</tt> <tt id="link-18" class="py-name"><a title="spade.tbcbp" class="py-name" href="#" onclick="return doclink('link-18', 'tbcbp', 'link-5');">tbcbp</a></tt><tt class="py-op">.</tt><tt id="link-19" class="py-name"><a title="spade.tbcbp.TBCBP" class="py-name" href="#" onclick="return doclink('link-19', 'TBCBP', 'link-17');">TBCBP</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L68"></a><tt class="py-lineno"> 68</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">active_goals</tt>    <tt class="py-op">=</tt> <tt id="link-20" class="py-name"><a title="spade.FlexQueue
spade.FlexQueue.FlexQueue" class="py-name" href="#" onclick="return doclink('link-20', 'FlexQueue', 'link-7');">FlexQueue</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L69"></a><tt class="py-lineno"> 69</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">prepared_goals</tt>  <tt class="py-op">=</tt> <tt id="link-21" class="py-name"><a title="spade.FlexQueue
spade.FlexQueue.FlexQueue" class="py-name" href="#" onclick="return doclink('link-21', 'FlexQueue', 'link-7');">FlexQueue</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L70"></a><tt class="py-lineno"> 70</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">scheduler</tt>       <tt class="py-op">=</tt> <tt class="py-name">Queue</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L71"></a><tt class="py-lineno"> 71</tt>  <tt class="py-line"> </tt>
<a name="L72"></a><tt class="py-lineno"> 72</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_needDeliberate</tt> <tt class="py-op">=</tt> <tt class="py-name">True</tt> </tt>
</div><a name="L73"></a><tt class="py-lineno"> 73</tt>  <tt class="py-line">         </tt>
<a name="BDIBehaviour.configureKB"></a><div id="BDIBehaviour.configureKB-def"><a name="L74"></a><tt class="py-lineno"> 74</tt> <a class="py-toggle" href="#" id="BDIBehaviour.configureKB-toggle" onclick="return toggle('BDIBehaviour.configureKB');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.bdi.BDIBehaviour-class.html#configureKB">configureKB</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">typ</tt><tt class="py-op">,</tt> <tt class="py-param">sentence</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">path</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BDIBehaviour.configureKB-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="BDIBehaviour.configureKB-expanded"><a name="L75"></a><tt class="py-lineno"> 75</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">myAgent</tt><tt class="py-op">.</tt><tt id="link-22" class="py-name" targets="Module spade.kb=spade.kb-module.html"><a title="spade.kb" class="py-name" href="#" onclick="return doclink('link-22', 'kb', 'link-22');">kb</a></tt><tt class="py-op">.</tt><tt id="link-23" class="py-name" targets="Method spade.kb.KB.configure()=spade.kb.KB-class.html#configure"><a title="spade.kb.KB.configure" class="py-name" href="#" onclick="return doclink('link-23', 'configure', 'link-23');">configure</a></tt><tt class="py-op">(</tt><tt class="py-name">typ</tt><tt class="py-op">,</tt><tt class="py-name">sentence</tt><tt class="py-op">,</tt><tt class="py-name">path</tt><tt class="py-op">)</tt> </tt>
</div><a name="L76"></a><tt class="py-lineno"> 76</tt>  <tt class="py-line"> </tt>
<a name="BDIBehaviour.addBelieve"></a><div id="BDIBehaviour.addBelieve-def"><a name="L77"></a><tt class="py-lineno"> 77</tt> <a class="py-toggle" href="#" id="BDIBehaviour.addBelieve-toggle" onclick="return toggle('BDIBehaviour.addBelieve');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.bdi.BDIBehaviour-class.html#addBelieve">addBelieve</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">sentence</tt><tt class="py-op">,</tt> <tt class="py-param">type</tt><tt class="py-op">=</tt><tt class="py-string">"insert"</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BDIBehaviour.addBelieve-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="BDIBehaviour.addBelieve-expanded"><a name="L78"></a><tt class="py-lineno"> 78</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">myAgent</tt><tt class="py-op">.</tt><tt id="link-24" class="py-name" targets="Method spade.Agent.AbstractAgent.addBelieve()=spade.Agent.AbstractAgent-class.html#addBelieve,Method spade.bdi.BDIBehaviour.addBelieve()=spade.bdi.BDIBehaviour-class.html#addBelieve"><a title="spade.Agent.AbstractAgent.addBelieve
spade.bdi.BDIBehaviour.addBelieve" class="py-name" href="#" onclick="return doclink('link-24', 'addBelieve', 'link-24');">addBelieve</a></tt><tt class="py-op">(</tt><tt class="py-name">sentence</tt><tt class="py-op">,</tt><tt class="py-name">type</tt><tt class="py-op">)</tt> </tt>
<a name="L79"></a><tt class="py-lineno"> 79</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_needDeliberate</tt> <tt class="py-op">=</tt> <tt class="py-name">True</tt> </tt>
</div><a name="L80"></a><tt class="py-lineno"> 80</tt>  <tt class="py-line"> </tt>
<a name="BDIBehaviour.removeBelieve"></a><div id="BDIBehaviour.removeBelieve-def"><a name="L81"></a><tt class="py-lineno"> 81</tt> <a class="py-toggle" href="#" id="BDIBehaviour.removeBelieve-toggle" onclick="return toggle('BDIBehaviour.removeBelieve');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.bdi.BDIBehaviour-class.html#removeBelieve">removeBelieve</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">sentence</tt><tt class="py-op">,</tt> <tt class="py-param">type</tt><tt class="py-op">=</tt><tt class="py-string">"delete"</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BDIBehaviour.removeBelieve-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="BDIBehaviour.removeBelieve-expanded"><a name="L82"></a><tt class="py-lineno"> 82</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">myAgent</tt><tt class="py-op">.</tt><tt id="link-25" class="py-name" targets="Method spade.Agent.AbstractAgent.removeBelieve()=spade.Agent.AbstractAgent-class.html#removeBelieve,Method spade.bdi.BDIBehaviour.removeBelieve()=spade.bdi.BDIBehaviour-class.html#removeBelieve"><a title="spade.Agent.AbstractAgent.removeBelieve
spade.bdi.BDIBehaviour.removeBelieve" class="py-name" href="#" onclick="return doclink('link-25', 'removeBelieve', 'link-25');">removeBelieve</a></tt><tt class="py-op">(</tt><tt class="py-name">sentence</tt><tt class="py-op">,</tt><tt class="py-name">type</tt><tt class="py-op">)</tt> </tt>
</div><a name="L83"></a><tt class="py-lineno"> 83</tt>  <tt class="py-line"> </tt>
<a name="BDIBehaviour.askBelieve"></a><div id="BDIBehaviour.askBelieve-def"><a name="L84"></a><tt class="py-lineno"> 84</tt> <a class="py-toggle" href="#" id="BDIBehaviour.askBelieve-toggle" onclick="return toggle('BDIBehaviour.askBelieve');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.bdi.BDIBehaviour-class.html#askBelieve">askBelieve</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">sentence</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BDIBehaviour.askBelieve-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="BDIBehaviour.askBelieve-expanded"><a name="L85"></a><tt class="py-lineno"> 85</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">myAgent</tt><tt class="py-op">.</tt><tt id="link-26" class="py-name" targets="Method spade.Agent.AbstractAgent.askBelieve()=spade.Agent.AbstractAgent-class.html#askBelieve,Method spade.bdi.BDIBehaviour.askBelieve()=spade.bdi.BDIBehaviour-class.html#askBelieve"><a title="spade.Agent.AbstractAgent.askBelieve
spade.bdi.BDIBehaviour.askBelieve" class="py-name" href="#" onclick="return doclink('link-26', 'askBelieve', 'link-26');">askBelieve</a></tt><tt class="py-op">(</tt><tt class="py-name">sentence</tt><tt class="py-op">)</tt> </tt>
</div><a name="L86"></a><tt class="py-lineno"> 86</tt>  <tt class="py-line"> </tt>
<a name="BDIBehaviour.saveFact"></a><div id="BDIBehaviour.saveFact-def"><a name="L87"></a><tt class="py-lineno"> 87</tt> <a class="py-toggle" href="#" id="BDIBehaviour.saveFact-toggle" onclick="return toggle('BDIBehaviour.saveFact');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.bdi.BDIBehaviour-class.html#saveFact">saveFact</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">name</tt><tt class="py-op">,</tt> <tt class="py-param">sentence</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BDIBehaviour.saveFact-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="BDIBehaviour.saveFact-expanded"><a name="L88"></a><tt class="py-lineno"> 88</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">myAgent</tt><tt class="py-op">.</tt><tt id="link-27" class="py-name"><a title="spade.kb" class="py-name" href="#" onclick="return doclink('link-27', 'kb', 'link-22');">kb</a></tt><tt class="py-op">.</tt><tt id="link-28" class="py-name" targets="Method spade.kb.KB.set()=spade.kb.KB-class.html#set"><a title="spade.kb.KB.set" class="py-name" href="#" onclick="return doclink('link-28', 'set', 'link-28');">set</a></tt><tt class="py-op">(</tt><tt id="link-29" class="py-name" targets="Variable spade.Agent.name=spade.Agent-module.html#name,Variable spade.MTP.name=spade.MTP-module.html#name,Variable spade.Organization.name=spade.Organization-module.html#name,Variable spade.Organization_new.name=spade.Organization_new-module.html#name,Variable spade.Unit.name=spade.Unit-module.html#name,Variable spade.Unit_new.name=spade.Unit_new-module.html#name,Variable spade.pubsub.name=spade.pubsub-module.html#name,Variable spade.socialnetwork.name=spade.socialnetwork-module.html#name,Variable spade.xmpp.auth.name=spade.xmpp.auth-module.html#name,Variable spade.xmpp.browser.name=spade.xmpp.browser-module.html#name,Variable spade.xmpp.commands.Command_Handler_Prototype.name=spade.xmpp.commands.Command_Handler_Prototype-class.html#name,Variable spade.xmpp.commands.TestCommand.name=spade.xmpp.commands.TestCommand-class.html#name,Variable spade.xmpp.commands.name=spade.xmpp.commands-module.html#name,Variable spade.xmpp.dispatcher.name=spade.xmpp.dispatcher-module.html#name,Variable spade.xmpp.features.name=spade.xmpp.features-module.html#name,Variable spade.xmpp.filetransfer.name=spade.xmpp.filetransfer-module.html#name,Variable spade.xmpp.name=spade.xmpp-module.html#name,Variable spade.xmpp.protocol.name=spade.xmpp.protocol-module.html#name,Variable spade.xmpp.roster.name=spade.xmpp.roster-module.html#name,Variable spade.xmpp.transports.name=spade.xmpp.transports-module.html#name,Variable spade.xmppd.modules.config.name=spade.xmppd.modules.config-module.html#name,Variable spade.xmppd.modules.db_fake.name=spade.xmppd.modules.db_fake-module.html#name,Variable spade.xmppd.modules.dialback.name=spade.xmppd.modules.dialback-module.html#name,Variable spade.xmppd.modules.jep0077.name=spade.xmppd.modules.jep0077-module.html#name,Variable spade.xmppd.modules.jep0078.name=spade.xmppd.modules.jep0078-module.html#name,Variable spade.xmppd.modules.message.name=spade.xmppd.modules.message-module.html#name,Variable spade.xmppd.modules.muc.name=spade.xmppd.modules.muc-module.html#name,Variable spade.xmppd.modules.oob.name=spade.xmppd.modules.oob-module.html#name,Variable spade.xmppd.modules.pubsub.name=spade.xmppd.modules.pubsub-module.html#name,Variable spade.xmppd.modules.roster.name=spade.xmppd.modules.roster-module.html#name,Variable spade.xmppd.modules.router.name=spade.xmppd.modules.router-module.html#name,Variable spade.xmppd.modules.stream.name=spade.xmppd.modules.stream-module.html#name,Variable spade.xmppd.modules.webadmin.name=spade.xmppd.modules.webadmin-module.html#name,Variable spade.xmppd.modules.wq.name=spade.xmppd.modules.wq-module.html#name,Variable spade.xmppd.xmppd.name=spade.xmppd.xmppd-module.html#name"><a title="spade.Agent.name
spade.MTP.name
spade.Organization.name
spade.Organization_new.name
spade.Unit.name
spade.Unit_new.name
spade.pubsub.name
spade.socialnetwork.name
spade.xmpp.auth.name
spade.xmpp.browser.name
spade.xmpp.commands.Command_Handler_Prototype.name
spade.xmpp.commands.TestCommand.name
spade.xmpp.commands.name
spade.xmpp.dispatcher.name
spade.xmpp.features.name
spade.xmpp.filetransfer.name
spade.xmpp.name
spade.xmpp.protocol.name
spade.xmpp.roster.name
spade.xmpp.transports.name
spade.xmppd.modules.config.name
spade.xmppd.modules.db_fake.name
spade.xmppd.modules.dialback.name
spade.xmppd.modules.jep0077.name
spade.xmppd.modules.jep0078.name
spade.xmppd.modules.message.name
spade.xmppd.modules.muc.name
spade.xmppd.modules.oob.name
spade.xmppd.modules.pubsub.name
spade.xmppd.modules.roster.name
spade.xmppd.modules.router.name
spade.xmppd.modules.stream.name
spade.xmppd.modules.webadmin.name
spade.xmppd.modules.wq.name
spade.xmppd.xmppd.name" class="py-name" href="#" onclick="return doclink('link-29', 'name', 'link-29');">name</a></tt><tt class="py-op">,</tt> <tt class="py-name">sentence</tt><tt class="py-op">)</tt> </tt>
<a name="L89"></a><tt class="py-lineno"> 89</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_needDeliberate</tt> <tt class="py-op">=</tt> <tt class="py-name">True</tt> </tt>
</div><a name="L90"></a><tt class="py-lineno"> 90</tt>  <tt class="py-line"> </tt>
<a name="BDIBehaviour.getFact"></a><div id="BDIBehaviour.getFact-def"><a name="L91"></a><tt class="py-lineno"> 91</tt> <a class="py-toggle" href="#" id="BDIBehaviour.getFact-toggle" onclick="return toggle('BDIBehaviour.getFact');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.bdi.BDIBehaviour-class.html#getFact">getFact</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">name</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BDIBehaviour.getFact-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="BDIBehaviour.getFact-expanded"><a name="L92"></a><tt class="py-lineno"> 92</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">myAgent</tt><tt class="py-op">.</tt><tt id="link-30" class="py-name"><a title="spade.kb" class="py-name" href="#" onclick="return doclink('link-30', 'kb', 'link-22');">kb</a></tt><tt class="py-op">.</tt><tt id="link-31" class="py-name" targets="Method spade.FlexQueue.FlexQueue.get()=spade.FlexQueue.FlexQueue-class.html#get,Method spade.kb.KB.get()=spade.kb.KB-class.html#get,Method spade.tbcbp.CaseDB.get()=spade.tbcbp.CaseDB-class.html#get,Method spade.xmppd.modules.db_fake.DB.get()=spade.xmppd.modules.db_fake.DB-class.html#get"><a title="spade.FlexQueue.FlexQueue.get
spade.kb.KB.get
spade.tbcbp.CaseDB.get
spade.xmppd.modules.db_fake.DB.get" class="py-name" href="#" onclick="return doclink('link-31', 'get', 'link-31');">get</a></tt><tt class="py-op">(</tt><tt id="link-32" class="py-name"><a title="spade.Agent.name
spade.MTP.name
spade.Organization.name
spade.Organization_new.name
spade.Unit.name
spade.Unit_new.name
spade.pubsub.name
spade.socialnetwork.name
spade.xmpp.auth.name
spade.xmpp.browser.name
spade.xmpp.commands.Command_Handler_Prototype.name
spade.xmpp.commands.TestCommand.name
spade.xmpp.commands.name
spade.xmpp.dispatcher.name
spade.xmpp.features.name
spade.xmpp.filetransfer.name
spade.xmpp.name
spade.xmpp.protocol.name
spade.xmpp.roster.name
spade.xmpp.transports.name
spade.xmppd.modules.config.name
spade.xmppd.modules.db_fake.name
spade.xmppd.modules.dialback.name
spade.xmppd.modules.jep0077.name
spade.xmppd.modules.jep0078.name
spade.xmppd.modules.message.name
spade.xmppd.modules.muc.name
spade.xmppd.modules.oob.name
spade.xmppd.modules.pubsub.name
spade.xmppd.modules.roster.name
spade.xmppd.modules.router.name
spade.xmppd.modules.stream.name
spade.xmppd.modules.webadmin.name
spade.xmppd.modules.wq.name
spade.xmppd.xmppd.name" class="py-name" href="#" onclick="return doclink('link-32', 'name', 'link-29');">name</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L93"></a><tt class="py-lineno"> 93</tt>  <tt class="py-line"> </tt>
<a name="BDIBehaviour.addPlan"></a><div id="BDIBehaviour.addPlan-def"><a name="L94"></a><tt class="py-lineno"> 94</tt> <a class="py-toggle" href="#" id="BDIBehaviour.addPlan-toggle" onclick="return toggle('BDIBehaviour.addPlan');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.bdi.BDIBehaviour-class.html#addPlan">addPlan</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">P</tt><tt class="py-op">,</tt><tt class="py-param">Q</tt><tt class="py-op">,</tt><tt class="py-param">inputs</tt><tt class="py-op">,</tt> <tt class="py-param">outputs</tt><tt class="py-op">,</tt> <tt class="py-param">services</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BDIBehaviour.addPlan-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="BDIBehaviour.addPlan-expanded"><a name="L95"></a><tt class="py-lineno"> 95</tt>  <tt class="py-line">        <tt class="py-docstring">'''Adds a new plan to the Planner (TBCBP)</tt> </tt>
<a name="L96"></a><tt class="py-lineno"> 96</tt>  <tt class="py-line"><tt class="py-docstring">        Usage: addPlan (P, Q, services)</tt> </tt>
<a name="L97"></a><tt class="py-lineno"> 97</tt>  <tt class="py-line"><tt class="py-docstring">        P - precondition of the plan</tt> </tt>
<a name="L98"></a><tt class="py-lineno"> 98</tt>  <tt class="py-line"><tt class="py-docstring">        Q - postcondition of the plan</tt> </tt>
<a name="L99"></a><tt class="py-lineno"> 99</tt>  <tt class="py-line"><tt class="py-docstring">        services - list of services names (strings)</tt> </tt>
<a name="L100"></a><tt class="py-lineno">100</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
<a name="L101"></a><tt class="py-lineno">101</tt>  <tt class="py-line"><tt class="py-docstring">        Return: None'''</tt> </tt>
<a name="L102"></a><tt class="py-lineno">102</tt>  <tt class="py-line">        <tt class="py-name">cases</tt><tt class="py-op">=</tt><tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L103"></a><tt class="py-lineno">103</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">s</tt> <tt class="py-keyword">in</tt> <tt id="link-33" class="py-name" targets="Method spade.Platform.SpadePlatform.services()=spade.Platform.SpadePlatform-class.html#services"><a title="spade.Platform.SpadePlatform.services" class="py-name" href="#" onclick="return doclink('link-33', 'services', 'link-33');">services</a></tt><tt class="py-op">:</tt> </tt>
<a name="L104"></a><tt class="py-lineno">104</tt>  <tt class="py-line">            <tt id="link-34" class="py-name" targets="Variable spade.ACLParser.c=spade.ACLParser-module.html#c,Variable spade.AMS.c=spade.AMS-module.html#c,Variable spade.DF.c=spade.DF-module.html#c,Variable spade.SL0Parser.c=spade.SL0Parser-module.html#c,Variable spade.pyparsing.c=spade.pyparsing-module.html#c"><a title="spade.ACLParser.c
spade.AMS.c
spade.DF.c
spade.SL0Parser.c
spade.pyparsing.c" class="py-name" href="#" onclick="return doclink('link-34', 'c', 'link-34');">c</a></tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-35" class="py-name"><a title="spade.tbcbp.TBCBP" class="py-name" href="#" onclick="return doclink('link-35', 'TBCBP', 'link-17');">TBCBP</a></tt><tt class="py-op">.</tt><tt id="link-36" class="py-name" targets="Method spade.tbcbp.TBCBP.getCaseOfService()=spade.tbcbp.TBCBP-class.html#getCaseOfService"><a title="spade.tbcbp.TBCBP.getCaseOfService" class="py-name" href="#" onclick="return doclink('link-36', 'getCaseOfService', 'link-36');">getCaseOfService</a></tt><tt class="py-op">(</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">s</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L105"></a><tt class="py-lineno">105</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt id="link-37" class="py-name"><a title="spade.ACLParser.c
spade.AMS.c
spade.DF.c
spade.SL0Parser.c
spade.pyparsing.c" class="py-name" href="#" onclick="return doclink('link-37', 'c', 'link-34');">c</a></tt><tt class="py-op">==</tt><tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L106"></a><tt class="py-lineno">106</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">myAgent</tt><tt class="py-op">.</tt><tt id="link-38" class="py-name" targets="Method spade.Agent.AbstractAgent.DEBUG()=spade.Agent.AbstractAgent-class.html#DEBUG,Method spade.spade_backend.SpadeBackend.DEBUG()=spade.spade_backend.SpadeBackend-class.html#DEBUG,Method spade.xmpp.client.PlugIn.DEBUG()=spade.xmpp.client.PlugIn-class.html#DEBUG,Method spade.xmpp.simplexml.NodeBuilder.DEBUG()=spade.xmpp.simplexml.NodeBuilder-class.html#DEBUG,Method spade.xmpp.transports.HTTPPROXYsocket.DEBUG()=spade.xmpp.transports.HTTPPROXYsocket-class.html#DEBUG"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-38', 'DEBUG', 'link-38');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">"Plan was not added. Service "</tt><tt class="py-op">+</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">s</tt><tt class="py-op">)</tt> <tt class="py-op">+</tt> <tt class="py-string">" does not exist."</tt><tt class="py-op">,</tt><tt class="py-string">"err"</tt><tt class="py-op">,</tt><tt class="py-string">'bdi'</tt><tt class="py-op">)</tt> </tt>
<a name="L107"></a><tt class="py-lineno">107</tt>  <tt class="py-line">                <tt class="py-keyword">return</tt> <tt class="py-name">False</tt> </tt>
<a name="L108"></a><tt class="py-lineno">108</tt>  <tt class="py-line">            <tt class="py-name">cases</tt><tt class="py-op">.</tt><tt id="link-39" class="py-name" targets="Method spade.pyparsing.ParseExpression.append()=spade.pyparsing.ParseExpression-class.html#append"><a title="spade.pyparsing.ParseExpression.append" class="py-name" href="#" onclick="return doclink('link-39', 'append', 'link-39');">append</a></tt><tt class="py-op">(</tt><tt id="link-40" class="py-name"><a title="spade.ACLParser.c
spade.AMS.c
spade.DF.c
spade.SL0Parser.c
spade.pyparsing.c" class="py-name" href="#" onclick="return doclink('link-40', 'c', 'link-34');">c</a></tt><tt class="py-op">)</tt> </tt>
<a name="L109"></a><tt class="py-lineno">109</tt>  <tt class="py-line"> </tt>
<a name="L110"></a><tt class="py-lineno">110</tt>  <tt class="py-line">        <tt class="py-name">plan</tt> <tt class="py-op">=</tt> <tt id="link-41" class="py-name"><a title="spade.tbcbp" class="py-name" href="#" onclick="return doclink('link-41', 'tbcbp', 'link-5');">tbcbp</a></tt><tt class="py-op">.</tt><tt id="link-42" class="py-name" targets="Class spade.tbcbp.Plan=spade.tbcbp.Plan-class.html"><a title="spade.tbcbp.Plan" class="py-name" href="#" onclick="return doclink('link-42', 'Plan', 'link-42');">Plan</a></tt><tt class="py-op">(</tt><tt class="py-name">cases</tt><tt class="py-op">)</tt> </tt>
<a name="L111"></a><tt class="py-lineno">111</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-43" class="py-name"><a title="spade.tbcbp.TBCBP" class="py-name" href="#" onclick="return doclink('link-43', 'TBCBP', 'link-17');">TBCBP</a></tt><tt class="py-op">.</tt><tt id="link-44" class="py-name" targets="Method spade.Agent.BDIAgent.addPlan()=spade.Agent.BDIAgent-class.html#addPlan,Method spade.bdi.BDIBehaviour.addPlan()=spade.bdi.BDIBehaviour-class.html#addPlan,Method spade.tbcbp.TBCBP.addPlan()=spade.tbcbp.TBCBP-class.html#addPlan"><a title="spade.Agent.BDIAgent.addPlan
spade.bdi.BDIBehaviour.addPlan
spade.tbcbp.TBCBP.addPlan" class="py-name" href="#" onclick="return doclink('link-44', 'addPlan', 'link-44');">addPlan</a></tt><tt class="py-op">(</tt><tt class="py-name">plan</tt><tt class="py-op">)</tt> </tt>
<a name="L112"></a><tt class="py-lineno">112</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">myAgent</tt><tt class="py-op">.</tt><tt id="link-45" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-45', 'DEBUG', 'link-38');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">"Plan added: "</tt><tt class="py-op">+</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">plan</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-string">"ok"</tt><tt class="py-op">,</tt><tt class="py-string">'bdi'</tt><tt class="py-op">)</tt> </tt>
<a name="L113"></a><tt class="py-lineno">113</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_needDeliberate</tt> <tt class="py-op">=</tt> <tt class="py-name">True</tt> </tt>
<a name="L114"></a><tt class="py-lineno">114</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">True</tt> </tt>
</div><a name="L115"></a><tt class="py-lineno">115</tt>  <tt class="py-line"> </tt>
<a name="BDIBehaviour.addGoal"></a><div id="BDIBehaviour.addGoal-def"><a name="L116"></a><tt class="py-lineno">116</tt> <a class="py-toggle" href="#" id="BDIBehaviour.addGoal-toggle" onclick="return toggle('BDIBehaviour.addGoal');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.bdi.BDIBehaviour-class.html#addGoal">addGoal</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">goal</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BDIBehaviour.addGoal-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="BDIBehaviour.addGoal-expanded"><a name="L117"></a><tt class="py-lineno">117</tt>  <tt class="py-line">        <tt class="py-comment">#First add the goal if no conflicts</tt> </tt>
<a name="L118"></a><tt class="py-lineno">118</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">goal</tt> <tt class="py-keyword">not</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">goals</tt><tt class="py-op">:</tt> </tt>
<a name="L119"></a><tt class="py-lineno">119</tt>  <tt class="py-line">            <tt class="py-name">conflict</tt> <tt class="py-op">=</tt> <tt class="py-name">False</tt> </tt>
<a name="L120"></a><tt class="py-lineno">120</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt class="py-name">g</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">goals</tt><tt class="py-op">:</tt> </tt>
<a name="L121"></a><tt class="py-lineno">121</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-name">g</tt><tt class="py-op">.</tt><tt id="link-46" class="py-name" targets="Method spade.bdi.Goal.testConflict()=spade.bdi.Goal-class.html#testConflict"><a title="spade.bdi.Goal.testConflict" class="py-name" href="#" onclick="return doclink('link-46', 'testConflict', 'link-46');">testConflict</a></tt><tt class="py-op">(</tt><tt class="py-name">goal</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L122"></a><tt class="py-lineno">122</tt>  <tt class="py-line">                    <tt class="py-name">conflict</tt> <tt class="py-op">=</tt> <tt class="py-name">True</tt> </tt>
<a name="L123"></a><tt class="py-lineno">123</tt>  <tt class="py-line">                    <tt class="py-keyword">break</tt> </tt>
<a name="L124"></a><tt class="py-lineno">124</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">conflict</tt> <tt class="py-keyword">and</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-47" class="py-name"><a title="spade.Agent.AbstractAgent.askBelieve
spade.bdi.BDIBehaviour.askBelieve" class="py-name" href="#" onclick="return doclink('link-47', 'askBelieve', 'link-26');">askBelieve</a></tt><tt class="py-op">(</tt><tt class="py-name">goal</tt><tt class="py-op">.</tt><tt class="py-name">expression</tt><tt class="py-op">)</tt><tt class="py-op">==</tt><tt class="py-name">False</tt><tt class="py-op">:</tt> </tt>
<a name="L125"></a><tt class="py-lineno">125</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">myAgent</tt><tt class="py-op">.</tt><tt id="link-48" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-48', 'DEBUG', 'link-38');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">"Goal added: "</tt><tt class="py-op">+</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">goal</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-string">"ok"</tt><tt class="py-op">,</tt> <tt class="py-string">'bdi'</tt><tt class="py-op">)</tt> </tt>
<a name="L126"></a><tt class="py-lineno">126</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">goals</tt><tt class="py-op">.</tt><tt id="link-49" class="py-name"><a title="spade.pyparsing.ParseExpression.append" class="py-name" href="#" onclick="return doclink('link-49', 'append', 'link-39');">append</a></tt><tt class="py-op">(</tt><tt class="py-name">goal</tt><tt class="py-op">)</tt> </tt>
<a name="L127"></a><tt class="py-lineno">127</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_needDeliberate</tt> <tt class="py-op">=</tt> <tt class="py-name">True</tt> </tt>
</div><a name="L128"></a><tt class="py-lineno">128</tt>  <tt class="py-line">                 </tt>
<a name="BDIBehaviour.registerServiceInTBCBP"></a><div id="BDIBehaviour.registerServiceInTBCBP-def"><a name="L129"></a><tt class="py-lineno">129</tt> <a class="py-toggle" href="#" id="BDIBehaviour.registerServiceInTBCBP-toggle" onclick="return toggle('BDIBehaviour.registerServiceInTBCBP');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.bdi.BDIBehaviour-class.html#registerServiceInTBCBP">registerServiceInTBCBP</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">service</tt><tt class="py-op">,</tt> <tt class="py-param">time</tt><tt class="py-op">=</tt><tt class="py-number">1</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BDIBehaviour.registerServiceInTBCBP-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="BDIBehaviour.registerServiceInTBCBP-expanded"><a name="L130"></a><tt class="py-lineno">130</tt>  <tt class="py-line">        <tt class="py-docstring">'''Registers new service in the Planner (TBCBP)</tt> </tt>
<a name="L131"></a><tt class="py-lineno">131</tt>  <tt class="py-line"><tt class="py-docstring">        Usage: registerService(service, time)</tt> </tt>
<a name="L132"></a><tt class="py-lineno">132</tt>  <tt class="py-line"><tt class="py-docstring">        service - A DF.Service class</tt> </tt>
<a name="L133"></a><tt class="py-lineno">133</tt>  <tt class="py-line"><tt class="py-docstring">        time    - the estimated execution time of the service (optional)</tt> </tt>
<a name="L134"></a><tt class="py-lineno">134</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
<a name="L135"></a><tt class="py-lineno">135</tt>  <tt class="py-line"><tt class="py-docstring">        Returns: None'''</tt> </tt>
<a name="L136"></a><tt class="py-lineno">136</tt>  <tt class="py-line">         </tt>
<a name="L137"></a><tt class="py-lineno">137</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-50" class="py-name"><a title="spade.tbcbp.TBCBP" class="py-name" href="#" onclick="return doclink('link-50', 'TBCBP', 'link-17');">TBCBP</a></tt><tt class="py-op">.</tt><tt id="link-51" class="py-name" targets="Method spade.Agent.AbstractAgent.registerService()=spade.Agent.AbstractAgent-class.html#registerService,Method spade.tbcbp.TBCBP.registerService()=spade.tbcbp.TBCBP-class.html#registerService"><a title="spade.Agent.AbstractAgent.registerService
spade.tbcbp.TBCBP.registerService" class="py-name" href="#" onclick="return doclink('link-51', 'registerService', 'link-51');">registerService</a></tt><tt class="py-op">(</tt><tt class="py-name">service</tt><tt class="py-op">=</tt><tt class="py-name">service</tt><tt class="py-op">,</tt><tt class="py-name">time</tt><tt class="py-op">=</tt><tt class="py-name">time</tt><tt class="py-op">)</tt> </tt>
<a name="L138"></a><tt class="py-lineno">138</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_needDeliberate</tt> <tt class="py-op">=</tt> <tt class="py-name">True</tt> </tt>
</div><a name="L139"></a><tt class="py-lineno">139</tt>  <tt class="py-line"> </tt>
<a name="BDIBehaviour.unregisterServiceInTBCBP"></a><div id="BDIBehaviour.unregisterServiceInTBCBP-def"><a name="L140"></a><tt class="py-lineno">140</tt> <a class="py-toggle" href="#" id="BDIBehaviour.unregisterServiceInTBCBP-toggle" onclick="return toggle('BDIBehaviour.unregisterServiceInTBCBP');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.bdi.BDIBehaviour-class.html#unregisterServiceInTBCBP">unregisterServiceInTBCBP</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">name</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt> <tt class="py-param">service</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BDIBehaviour.unregisterServiceInTBCBP-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="BDIBehaviour.unregisterServiceInTBCBP-expanded"><a name="L141"></a><tt class="py-lineno">141</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt id="link-52" class="py-name"><a title="spade.Agent.name
spade.MTP.name
spade.Organization.name
spade.Organization_new.name
spade.Unit.name
spade.Unit_new.name
spade.pubsub.name
spade.socialnetwork.name
spade.xmpp.auth.name
spade.xmpp.browser.name
spade.xmpp.commands.Command_Handler_Prototype.name
spade.xmpp.commands.TestCommand.name
spade.xmpp.commands.name
spade.xmpp.dispatcher.name
spade.xmpp.features.name
spade.xmpp.filetransfer.name
spade.xmpp.name
spade.xmpp.protocol.name
spade.xmpp.roster.name
spade.xmpp.transports.name
spade.xmppd.modules.config.name
spade.xmppd.modules.db_fake.name
spade.xmppd.modules.dialback.name
spade.xmppd.modules.jep0077.name
spade.xmppd.modules.jep0078.name
spade.xmppd.modules.message.name
spade.xmppd.modules.muc.name
spade.xmppd.modules.oob.name
spade.xmppd.modules.pubsub.name
spade.xmppd.modules.roster.name
spade.xmppd.modules.router.name
spade.xmppd.modules.stream.name
spade.xmppd.modules.webadmin.name
spade.xmppd.modules.wq.name
spade.xmppd.xmppd.name" class="py-name" href="#" onclick="return doclink('link-52', 'name', 'link-29');">name</a></tt><tt class="py-op">:</tt> <tt id="link-53" class="py-name"><a title="spade.Agent.name
spade.MTP.name
spade.Organization.name
spade.Organization_new.name
spade.Unit.name
spade.Unit_new.name
spade.pubsub.name
spade.socialnetwork.name
spade.xmpp.auth.name
spade.xmpp.browser.name
spade.xmpp.commands.Command_Handler_Prototype.name
spade.xmpp.commands.TestCommand.name
spade.xmpp.commands.name
spade.xmpp.dispatcher.name
spade.xmpp.features.name
spade.xmpp.filetransfer.name
spade.xmpp.name
spade.xmpp.protocol.name
spade.xmpp.roster.name
spade.xmpp.transports.name
spade.xmppd.modules.config.name
spade.xmppd.modules.db_fake.name
spade.xmppd.modules.dialback.name
spade.xmppd.modules.jep0077.name
spade.xmppd.modules.jep0078.name
spade.xmppd.modules.message.name
spade.xmppd.modules.muc.name
spade.xmppd.modules.oob.name
spade.xmppd.modules.pubsub.name
spade.xmppd.modules.roster.name
spade.xmppd.modules.router.name
spade.xmppd.modules.stream.name
spade.xmppd.modules.webadmin.name
spade.xmppd.modules.wq.name
spade.xmppd.xmppd.name" class="py-name" href="#" onclick="return doclink('link-53', 'name', 'link-29');">name</a></tt><tt class="py-op">=</tt> <tt class="py-name">service</tt><tt class="py-op">.</tt><tt id="link-54" class="py-name" targets="Method spade.AID.aid.getName()=spade.AID.aid-class.html#getName,Method spade.Agent.AbstractAgent.getName()=spade.Agent.AbstractAgent-class.html#getName,Method spade.DF.DfAgentDescription.getName()=spade.DF.DfAgentDescription-class.html#getName,Method spade.DF.Service.getName()=spade.DF.Service-class.html#getName,Method spade.DF.ServiceDescription.getName()=spade.DF.ServiceDescription-class.html#getName,Method spade.pyparsing.ParseResults.getName()=spade.pyparsing.ParseResults-class.html#getName,Method spade.xmpp.roster.Roster.getName()=spade.xmpp.roster.Roster-class.html#getName,Method spade.xmpp.simplexml.Node.getName()=spade.xmpp.simplexml.Node-class.html#getName,Method spade.xmppd.modules.muc.Room.getName()=spade.xmppd.modules.muc.Room-class.html#getName,Method spade.xmppd.modules.wq.Group.getName()=spade.xmppd.modules.wq.Group-class.html#getName,Method spade.xmppd.xmppd.Session.getName()=spade.xmppd.xmppd.Session-class.html#getName"><a title="spade.AID.aid.getName
spade.Agent.AbstractAgent.getName
spade.DF.DfAgentDescription.getName
spade.DF.Service.getName
spade.DF.ServiceDescription.getName
spade.pyparsing.ParseResults.getName
spade.xmpp.roster.Roster.getName
spade.xmpp.simplexml.Node.getName
spade.xmppd.modules.muc.Room.getName
spade.xmppd.modules.wq.Group.getName
spade.xmppd.xmppd.Session.getName" class="py-name" href="#" onclick="return doclink('link-54', 'getName', 'link-54');">getName</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L142"></a><tt class="py-lineno">142</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-55" class="py-name"><a title="spade.tbcbp.TBCBP" class="py-name" href="#" onclick="return doclink('link-55', 'TBCBP', 'link-17');">TBCBP</a></tt><tt class="py-op">.</tt><tt id="link-56" class="py-name" targets="Method spade.DF.DfAgentDescription.delService()=spade.DF.DfAgentDescription-class.html#delService,Method spade.tbcbp.TBCBP.delService()=spade.tbcbp.TBCBP-class.html#delService"><a title="spade.DF.DfAgentDescription.delService
spade.tbcbp.TBCBP.delService" class="py-name" href="#" onclick="return doclink('link-56', 'delService', 'link-56');">delService</a></tt><tt class="py-op">(</tt><tt id="link-57" class="py-name"><a title="spade.Agent.name
spade.MTP.name
spade.Organization.name
spade.Organization_new.name
spade.Unit.name
spade.Unit_new.name
spade.pubsub.name
spade.socialnetwork.name
spade.xmpp.auth.name
spade.xmpp.browser.name
spade.xmpp.commands.Command_Handler_Prototype.name
spade.xmpp.commands.TestCommand.name
spade.xmpp.commands.name
spade.xmpp.dispatcher.name
spade.xmpp.features.name
spade.xmpp.filetransfer.name
spade.xmpp.name
spade.xmpp.protocol.name
spade.xmpp.roster.name
spade.xmpp.transports.name
spade.xmppd.modules.config.name
spade.xmppd.modules.db_fake.name
spade.xmppd.modules.dialback.name
spade.xmppd.modules.jep0077.name
spade.xmppd.modules.jep0078.name
spade.xmppd.modules.message.name
spade.xmppd.modules.muc.name
spade.xmppd.modules.oob.name
spade.xmppd.modules.pubsub.name
spade.xmppd.modules.roster.name
spade.xmppd.modules.router.name
spade.xmppd.modules.stream.name
spade.xmppd.modules.webadmin.name
spade.xmppd.modules.wq.name
spade.xmppd.xmppd.name" class="py-name" href="#" onclick="return doclink('link-57', 'name', 'link-29');">name</a></tt><tt class="py-op">)</tt> </tt>
<a name="L143"></a><tt class="py-lineno">143</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_needDeliberate</tt> <tt class="py-op">=</tt> <tt class="py-name">True</tt> </tt>
</div><a name="L144"></a><tt class="py-lineno">144</tt>  <tt class="py-line"> </tt>
<a name="BDIBehaviour.getPlan"></a><div id="BDIBehaviour.getPlan-def"><a name="L145"></a><tt class="py-lineno">145</tt> <a class="py-toggle" href="#" id="BDIBehaviour.getPlan-toggle" onclick="return toggle('BDIBehaviour.getPlan');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.bdi.BDIBehaviour-class.html#getPlan">getPlan</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">goal</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BDIBehaviour.getPlan-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="BDIBehaviour.getPlan-expanded"><a name="L146"></a><tt class="py-lineno">146</tt>  <tt class="py-line">        <tt class="py-docstring">'''Finds a plan for a specified goal.</tt> </tt>
<a name="L147"></a><tt class="py-lineno">147</tt>  <tt class="py-line"><tt class="py-docstring">        If there is not an existing plan, it composes a new one (when possible)</tt> </tt>
<a name="L148"></a><tt class="py-lineno">148</tt>  <tt class="py-line"><tt class="py-docstring">        Usage getPlan( goal )</tt> </tt>
<a name="L149"></a><tt class="py-lineno">149</tt>  <tt class="py-line"><tt class="py-docstring">        goal - a Goal object to be achieved</tt> </tt>
<a name="L150"></a><tt class="py-lineno">150</tt>  <tt class="py-line"><tt class="py-docstring">        </tt> </tt>
<a name="L151"></a><tt class="py-lineno">151</tt>  <tt class="py-line"><tt class="py-docstring">        Returns: TBCBP.Plan object or None is there is no available plan'''</tt> </tt>
<a name="L152"></a><tt class="py-lineno">152</tt>  <tt class="py-line">         </tt>
<a name="L153"></a><tt class="py-lineno">153</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">myAgent</tt><tt class="py-op">.</tt><tt id="link-58" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-58', 'DEBUG', 'link-38');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">"Composing a plan for goal "</tt><tt class="py-op">+</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">goal</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-string">'info'</tt><tt class="py-op">,</tt><tt class="py-string">'bdi'</tt><tt class="py-op">)</tt> </tt>
<a name="L154"></a><tt class="py-lineno">154</tt>  <tt class="py-line">        <tt class="py-name">plan</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-59" class="py-name" targets="Method spade.bdi.BDIBehaviour.composePlan()=spade.bdi.BDIBehaviour-class.html#composePlan,Method spade.tbcbp.TBCBP.composePlan()=spade.tbcbp.TBCBP-class.html#composePlan"><a title="spade.bdi.BDIBehaviour.composePlan
spade.tbcbp.TBCBP.composePlan" class="py-name" href="#" onclick="return doclink('link-59', 'composePlan', 'link-59');">composePlan</a></tt><tt class="py-op">(</tt><tt class="py-name">goal</tt><tt class="py-op">)</tt> </tt>
<a name="L155"></a><tt class="py-lineno">155</tt>  <tt class="py-line"> </tt>
<a name="L156"></a><tt class="py-lineno">156</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">plan</tt> <tt class="py-op">==</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L157"></a><tt class="py-lineno">157</tt>  <tt class="py-line">            <tt class="py-comment">#goal is unreachable</tt> </tt>
<a name="L158"></a><tt class="py-lineno">158</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">myAgent</tt><tt class="py-op">.</tt><tt id="link-60" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-60', 'DEBUG', 'link-38');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">"No plan found for Goal "</tt><tt class="py-op">+</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">goal</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-string">'warn'</tt><tt class="py-op">,</tt><tt class="py-string">'bdi'</tt><tt class="py-op">)</tt> </tt>
<a name="L159"></a><tt class="py-lineno">159</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
<a name="L160"></a><tt class="py-lineno">160</tt>  <tt class="py-line"> </tt>
<a name="L161"></a><tt class="py-lineno">161</tt>  <tt class="py-line">        <tt class="py-name">plan</tt><tt class="py-op">[</tt><tt class="py-string">'index'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-number">0</tt> </tt>
<a name="L162"></a><tt class="py-lineno">162</tt>  <tt class="py-line">        <tt class="py-name">plan</tt><tt class="py-op">[</tt><tt class="py-string">'goal'</tt><tt class="py-op">]</tt>  <tt class="py-op">=</tt> <tt class="py-name">goal</tt> </tt>
<a name="L163"></a><tt class="py-lineno">163</tt>  <tt class="py-line">        <tt class="py-name">plan</tt><tt class="py-op">.</tt><tt class="py-name">agent_owner</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">myAgent</tt> </tt>
<a name="L164"></a><tt class="py-lineno">164</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">plan</tt> </tt>
</div><a name="L165"></a><tt class="py-lineno">165</tt>  <tt class="py-line"> </tt>
<a name="BDIBehaviour.composePlan"></a><div id="BDIBehaviour.composePlan-def"><a name="L166"></a><tt class="py-lineno">166</tt> <a class="py-toggle" href="#" id="BDIBehaviour.composePlan-toggle" onclick="return toggle('BDIBehaviour.composePlan');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.bdi.BDIBehaviour-class.html#composePlan">composePlan</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">goal</tt><tt class="py-op">,</tt> <tt class="py-param">tout</tt><tt class="py-op">=</tt><tt class="py-op">-</tt><tt class="py-number">1</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BDIBehaviour.composePlan-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="BDIBehaviour.composePlan-expanded"><a name="L167"></a><tt class="py-lineno">167</tt>  <tt class="py-line">        <tt class="py-docstring">'''</tt> </tt>
<a name="L168"></a><tt class="py-lineno">168</tt>  <tt class="py-line"><tt class="py-docstring">        calls the Temporal-Bounded Case Based Planner</tt> </tt>
<a name="L169"></a><tt class="py-lineno">169</tt>  <tt class="py-line"><tt class="py-docstring">        '''</tt> </tt>
<a name="L170"></a><tt class="py-lineno">170</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-61" class="py-name"><a title="spade.tbcbp.TBCBP" class="py-name" href="#" onclick="return doclink('link-61', 'TBCBP', 'link-17');">TBCBP</a></tt><tt class="py-op">.</tt><tt id="link-62" class="py-name"><a title="spade.bdi.BDIBehaviour.composePlan
spade.tbcbp.TBCBP.composePlan" class="py-name" href="#" onclick="return doclink('link-62', 'composePlan', 'link-59');">composePlan</a></tt><tt class="py-op">(</tt><tt class="py-name">goal</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">myAgent</tt><tt class="py-op">.</tt><tt id="link-63" class="py-name"><a title="spade.kb" class="py-name" href="#" onclick="return doclink('link-63', 'kb', 'link-22');">kb</a></tt><tt class="py-op">,</tt><tt class="py-name">tout</tt><tt class="py-op">=</tt><tt class="py-number">20</tt><tt class="py-op">)</tt> </tt>
</div><a name="L171"></a><tt class="py-lineno">171</tt>  <tt class="py-line">             </tt>
<a name="BDIBehaviour.selectIntentions"></a><div id="BDIBehaviour.selectIntentions-def"><a name="L172"></a><tt class="py-lineno">172</tt> <a class="py-toggle" href="#" id="BDIBehaviour.selectIntentions-toggle" onclick="return toggle('BDIBehaviour.selectIntentions');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.bdi.BDIBehaviour-class.html#selectIntentions">selectIntentions</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BDIBehaviour.selectIntentions-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="BDIBehaviour.selectIntentions-expanded"><a name="L173"></a><tt class="py-lineno">173</tt>  <tt class="py-line">        <tt class="py-docstring">'''</tt> </tt>
<a name="L174"></a><tt class="py-lineno">174</tt>  <tt class="py-line"><tt class="py-docstring">        Prepares new plan for active goals</tt> </tt>
<a name="L175"></a><tt class="py-lineno">175</tt>  <tt class="py-line"><tt class="py-docstring">        Looks for all prepared goals and selects a new plan for it.</tt> </tt>
<a name="L176"></a><tt class="py-lineno">176</tt>  <tt class="py-line"><tt class="py-docstring">        then the goal is archived in prepared_goals</tt> </tt>
<a name="L177"></a><tt class="py-lineno">177</tt>  <tt class="py-line"><tt class="py-docstring">        and the plan is stored in self.plans</tt> </tt>
<a name="L178"></a><tt class="py-lineno">178</tt>  <tt class="py-line"><tt class="py-docstring">        '''</tt> </tt>
<a name="L179"></a><tt class="py-lineno">179</tt>  <tt class="py-line"> </tt>
<a name="L180"></a><tt class="py-lineno">180</tt>  <tt class="py-line">        <tt class="py-comment">#while not self.prepared_goals.empty(): #return</tt> </tt>
<a name="L181"></a><tt class="py-lineno">181</tt>  <tt class="py-line">        <tt class="py-name">goal</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">prepared_goals</tt><tt class="py-op">.</tt><tt id="link-64" class="py-name"><a title="spade.FlexQueue.FlexQueue.get
spade.kb.KB.get
spade.tbcbp.CaseDB.get
spade.xmppd.modules.db_fake.DB.get" class="py-name" href="#" onclick="return doclink('link-64', 'get', 'link-31');">get</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L182"></a><tt class="py-lineno">182</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">myAgent</tt><tt class="py-op">.</tt><tt id="link-65" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-65', 'DEBUG', 'link-38');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">"Got goal "</tt><tt class="py-op">+</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">goal</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-string">'info'</tt><tt class="py-op">,</tt><tt class="py-string">'bdi'</tt><tt class="py-op">)</tt> </tt>
<a name="L183"></a><tt class="py-lineno">183</tt>  <tt class="py-line"> </tt>
<a name="L184"></a><tt class="py-lineno">184</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">goal</tt><tt class="py-op">!=</tt><tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L185"></a><tt class="py-lineno">185</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-66" class="py-name"><a title="spade.Agent.AbstractAgent.askBelieve
spade.bdi.BDIBehaviour.askBelieve" class="py-name" href="#" onclick="return doclink('link-66', 'askBelieve', 'link-26');">askBelieve</a></tt><tt class="py-op">(</tt><tt class="py-name">goal</tt><tt class="py-op">.</tt><tt class="py-name">expression</tt><tt class="py-op">)</tt><tt class="py-op">==</tt><tt class="py-name">True</tt><tt class="py-op">:</tt> </tt>
<a name="L186"></a><tt class="py-lineno">186</tt>  <tt class="py-line">                <tt class="py-name">goal</tt><tt class="py-op">.</tt><tt id="link-67" class="py-name"><a title="spade.Behaviour.Behaviour.done
spade.Behaviour.FSMBehaviour.done
spade.Behaviour.OneShotBehaviour.done
spade.Behaviour.TimeOutBehaviour.done" class="py-name" href="#" onclick="return doclink('link-67', 'done', 'link-10');">done</a></tt><tt class="py-op">=</tt><tt class="py-name">True</tt> </tt>
<a name="L187"></a><tt class="py-lineno">187</tt>  <tt class="py-line">                <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> <tt class="py-comment">#continue</tt> </tt>
<a name="L188"></a><tt class="py-lineno">188</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">goal</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">active_goals</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> <tt class="py-comment">#continue</tt> </tt>
<a name="L189"></a><tt class="py-lineno">189</tt>  <tt class="py-line"> </tt>
<a name="L190"></a><tt class="py-lineno">190</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">myAgent</tt><tt class="py-op">.</tt><tt id="link-68" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-68', 'DEBUG', 'link-38');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">"Activate Goal: "</tt> <tt class="py-op">+</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">goal</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-string">'info'</tt><tt class="py-op">,</tt><tt class="py-string">'bdi'</tt><tt class="py-op">)</tt> </tt>
<a name="L191"></a><tt class="py-lineno">191</tt>  <tt class="py-line">            <tt class="py-name">plan</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-69" class="py-name" targets="Method spade.bdi.BDIBehaviour.getPlan()=spade.bdi.BDIBehaviour-class.html#getPlan"><a title="spade.bdi.BDIBehaviour.getPlan" class="py-name" href="#" onclick="return doclink('link-69', 'getPlan', 'link-69');">getPlan</a></tt><tt class="py-op">(</tt><tt class="py-name">goal</tt><tt class="py-op">)</tt> </tt>
<a name="L192"></a><tt class="py-lineno">192</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">plan</tt><tt class="py-op">!=</tt><tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L193"></a><tt class="py-lineno">193</tt>  <tt class="py-line">                <tt class="py-comment">#activate plan</tt> </tt>
<a name="L194"></a><tt class="py-lineno">194</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">myAgent</tt><tt class="py-op">.</tt><tt id="link-70" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-70', 'DEBUG', 'link-38');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">"Got a plan for goal "</tt> <tt class="py-op">+</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">goal</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-string">'info'</tt><tt class="py-op">,</tt><tt class="py-string">'bdi'</tt><tt class="py-op">)</tt> </tt>
<a name="L195"></a><tt class="py-lineno">195</tt>  <tt class="py-line">                <tt class="py-name">goal</tt><tt class="py-op">.</tt><tt class="py-name">selected</tt> <tt class="py-op">=</tt> <tt class="py-name">True</tt> </tt>
<a name="L196"></a><tt class="py-lineno">196</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">active_goals</tt><tt class="py-op">.</tt><tt id="link-71" class="py-name" targets="Method spade.FlexQueue.FlexQueue.put()=spade.FlexQueue.FlexQueue-class.html#put"><a title="spade.FlexQueue.FlexQueue.put" class="py-name" href="#" onclick="return doclink('link-71', 'put', 'link-71');">put</a></tt><tt class="py-op">(</tt><tt class="py-name">goal</tt><tt class="py-op">)</tt> </tt>
<a name="L197"></a><tt class="py-lineno">197</tt>  <tt class="py-line">                <tt class="py-name">plan</tt><tt class="py-op">.</tt><tt class="py-name">agent</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt> </tt>
<a name="L198"></a><tt class="py-lineno">198</tt>  <tt class="py-line">                <tt class="py-comment">#init plan        </tt> </tt>
<a name="L199"></a><tt class="py-lineno">199</tt>  <tt class="py-line">                <tt class="py-name">pid</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">plans</tt><tt class="py-op">.</tt><tt id="link-72" class="py-name" targets="Method spade.bdi.PlanList.add()=spade.bdi.PlanList-class.html#add,Method spade.tbcbp.CaseDB.add()=spade.tbcbp.CaseDB-class.html#add"><a title="spade.bdi.PlanList.add
spade.tbcbp.CaseDB.add" class="py-name" href="#" onclick="return doclink('link-72', 'add', 'link-72');">add</a></tt><tt class="py-op">(</tt><tt class="py-name">plan</tt><tt class="py-op">)</tt> </tt>
<a name="L200"></a><tt class="py-lineno">200</tt>  <tt class="py-line">                <tt class="py-comment">#activate first service</tt> </tt>
<a name="L201"></a><tt class="py-lineno">201</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-73" class="py-name" targets="Method spade.bdi.BDIBehaviour.insertNextService()=spade.bdi.BDIBehaviour-class.html#insertNextService"><a title="spade.bdi.BDIBehaviour.insertNextService" class="py-name" href="#" onclick="return doclink('link-73', 'insertNextService', 'link-73');">insertNextService</a></tt><tt class="py-op">(</tt><tt class="py-name">plan</tt><tt class="py-op">,</tt><tt class="py-name">pid</tt><tt class="py-op">)</tt> </tt>
<a name="L202"></a><tt class="py-lineno">202</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-74" class="py-name" targets="Method spade.bdi.BDIBehaviour.planSelectedCB()=spade.bdi.BDIBehaviour-class.html#planSelectedCB"><a title="spade.bdi.BDIBehaviour.planSelectedCB" class="py-name" href="#" onclick="return doclink('link-74', 'planSelectedCB', 'link-74');">planSelectedCB</a></tt><tt class="py-op">(</tt><tt class="py-name">plan</tt><tt class="py-op">)</tt> </tt>
<a name="L203"></a><tt class="py-lineno">203</tt>  <tt class="py-line">            <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L204"></a><tt class="py-lineno">204</tt>  <tt class="py-line">                <tt class="py-name">goal</tt><tt class="py-op">.</tt><tt class="py-name">unreachable</tt> <tt class="py-op">=</tt> <tt class="py-name">True</tt> </tt>
<a name="L205"></a><tt class="py-lineno">205</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">myAgent</tt><tt class="py-op">.</tt><tt id="link-75" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-75', 'DEBUG', 'link-38');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">"Goal is Unreachable: "</tt><tt class="py-op">+</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">goal</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-string">'warn'</tt><tt class="py-op">,</tt><tt class="py-string">'bdi'</tt><tt class="py-op">)</tt> </tt>
<a name="L206"></a><tt class="py-lineno">206</tt>  <tt class="py-line">                <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
</div><a name="L207"></a><tt class="py-lineno">207</tt>  <tt class="py-line"> </tt>
<a name="BDIBehaviour.insertNextService"></a><div id="BDIBehaviour.insertNextService-def"><a name="L208"></a><tt class="py-lineno">208</tt> <a class="py-toggle" href="#" id="BDIBehaviour.insertNextService-toggle" onclick="return toggle('BDIBehaviour.insertNextService');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.bdi.BDIBehaviour-class.html#insertNextService">insertNextService</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">plan</tt><tt class="py-op">,</tt><tt class="py-param">pid</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BDIBehaviour.insertNextService-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="BDIBehaviour.insertNextService-expanded"><a name="L209"></a><tt class="py-lineno">209</tt>  <tt class="py-line">        <tt class="py-docstring">'''Selects the next service of a plan to be executed</tt> </tt>
<a name="L210"></a><tt class="py-lineno">210</tt>  <tt class="py-line"><tt class="py-docstring">        Usage: insertNextService( plan, pid)</tt> </tt>
<a name="L211"></a><tt class="py-lineno">211</tt>  <tt class="py-line"><tt class="py-docstring">        plan - the running plan (TBCBP.Plan)</tt> </tt>
<a name="L212"></a><tt class="py-lineno">212</tt>  <tt class="py-line"><tt class="py-docstring">        pid  - the plan identifier'''</tt> </tt>
<a name="L213"></a><tt class="py-lineno">213</tt>  <tt class="py-line">         </tt>
<a name="L214"></a><tt class="py-lineno">214</tt>  <tt class="py-line">        <tt class="py-name">service_name</tt> <tt class="py-op">=</tt> <tt class="py-name">plan</tt><tt class="py-op">.</tt><tt id="link-76" class="py-name" targets="Method spade.tbcbp.Plan.getNextService()=spade.tbcbp.Plan-class.html#getNextService"><a title="spade.tbcbp.Plan.getNextService" class="py-name" href="#" onclick="return doclink('link-76', 'getNextService', 'link-76');">getNextService</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L215"></a><tt class="py-lineno">215</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">myAgent</tt><tt class="py-op">.</tt><tt id="link-77" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-77', 'DEBUG', 'link-38');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">"next service is "</tt> <tt class="py-op">+</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">service_name</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-string">'info'</tt><tt class="py-op">,</tt><tt class="py-string">'bdi'</tt><tt class="py-op">)</tt> </tt>
<a name="L216"></a><tt class="py-lineno">216</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">service_name</tt> <tt class="py-op">==</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L217"></a><tt class="py-lineno">217</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-78" class="py-name" targets="Method spade.bdi.BDIBehaviour.EndPlan()=spade.bdi.BDIBehaviour-class.html#EndPlan"><a title="spade.bdi.BDIBehaviour.EndPlan" class="py-name" href="#" onclick="return doclink('link-78', 'EndPlan', 'link-78');">EndPlan</a></tt><tt class="py-op">(</tt><tt class="py-name">pid</tt><tt class="py-op">,</tt> <tt class="py-name">plan</tt><tt class="py-op">)</tt> </tt>
<a name="L218"></a><tt class="py-lineno">218</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> </tt>
<a name="L219"></a><tt class="py-lineno">219</tt>  <tt class="py-line">        <tt class="py-name">service</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-79" class="py-name"><a title="spade.tbcbp.TBCBP" class="py-name" href="#" onclick="return doclink('link-79', 'TBCBP', 'link-17');">TBCBP</a></tt><tt class="py-op">.</tt><tt id="link-80" class="py-name" targets="Method spade.tbcbp.TBCBP.getService()=spade.tbcbp.TBCBP-class.html#getService"><a title="spade.tbcbp.TBCBP.getService" class="py-name" href="#" onclick="return doclink('link-80', 'getService', 'link-80');">getService</a></tt><tt class="py-op">(</tt><tt class="py-name">service_name</tt><tt class="py-op">)</tt> </tt>
<a name="L220"></a><tt class="py-lineno">220</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">service</tt><tt class="py-op">:</tt> </tt>
<a name="L221"></a><tt class="py-lineno">221</tt>  <tt class="py-line">            <tt class="py-name">service</tt><tt class="py-op">.</tt><tt class="py-name">pid</tt> <tt class="py-op">=</tt> <tt class="py-name">pid</tt> </tt>
<a name="L222"></a><tt class="py-lineno">222</tt>  <tt class="py-line">            <tt class="py-name">service</tt><tt class="py-op">.</tt><tt class="py-name">agent_owner</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt> </tt>
<a name="L223"></a><tt class="py-lineno">223</tt>  <tt class="py-line"> </tt>
<a name="L224"></a><tt class="py-lineno">224</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">scheduler</tt><tt class="py-op">.</tt><tt id="link-81" class="py-name"><a title="spade.FlexQueue.FlexQueue.put" class="py-name" href="#" onclick="return doclink('link-81', 'put', 'link-71');">put</a></tt><tt class="py-op">(</tt><tt class="py-name">service</tt><tt class="py-op">)</tt> </tt>
<a name="L225"></a><tt class="py-lineno">225</tt>  <tt class="py-line"> </tt>
<a name="L226"></a><tt class="py-lineno">226</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> <tt class="py-comment">#plan has finished</tt> </tt>
<a name="L227"></a><tt class="py-lineno">227</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-82" class="py-name"><a title="spade.bdi.BDIBehaviour.EndPlan" class="py-name" href="#" onclick="return doclink('link-82', 'EndPlan', 'link-78');">EndPlan</a></tt><tt class="py-op">(</tt><tt class="py-name">pid</tt><tt class="py-op">,</tt> <tt class="py-name">plan</tt><tt class="py-op">)</tt> </tt>
</div><a name="L228"></a><tt class="py-lineno">228</tt>  <tt class="py-line"> </tt>
<a name="BDIBehaviour.EndPlan"></a><div id="BDIBehaviour.EndPlan-def"><a name="L229"></a><tt class="py-lineno">229</tt> <a class="py-toggle" href="#" id="BDIBehaviour.EndPlan-toggle" onclick="return toggle('BDIBehaviour.EndPlan');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.bdi.BDIBehaviour-class.html#EndPlan">EndPlan</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">pid</tt><tt class="py-op">,</tt><tt class="py-param">plan</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BDIBehaviour.EndPlan-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="BDIBehaviour.EndPlan-expanded"><a name="L230"></a><tt class="py-lineno">230</tt>  <tt class="py-line">        <tt class="py-docstring">'''Finishes the execution of a plan.</tt> </tt>
<a name="L231"></a><tt class="py-lineno">231</tt>  <tt class="py-line"><tt class="py-docstring">        If the plan run well, its case is rewarded. Otherwise, it is punished.</tt> </tt>
<a name="L232"></a><tt class="py-lineno">232</tt>  <tt class="py-line"><tt class="py-docstring">        Finally goal is setted as done and not active.</tt> </tt>
<a name="L233"></a><tt class="py-lineno">233</tt>  <tt class="py-line"><tt class="py-docstring">        Usage: EndPlan ( pid, plan)</tt> </tt>
<a name="L234"></a><tt class="py-lineno">234</tt>  <tt class="py-line"><tt class="py-docstring">        pid  - Plan identifier</tt> </tt>
<a name="L235"></a><tt class="py-lineno">235</tt>  <tt class="py-line"><tt class="py-docstring">        plan - TBCBP.Plan object</tt> </tt>
<a name="L236"></a><tt class="py-lineno">236</tt>  <tt class="py-line"><tt class="py-docstring">        '''</tt> </tt>
<a name="L237"></a><tt class="py-lineno">237</tt>  <tt class="py-line">        <tt class="py-keyword">del</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">plans</tt><tt class="py-op">[</tt><tt class="py-name">pid</tt><tt class="py-op">]</tt> </tt>
<a name="L238"></a><tt class="py-lineno">238</tt>  <tt class="py-line">        <tt class="py-comment">#check its postcondition</tt> </tt>
<a name="L239"></a><tt class="py-lineno">239</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">plan</tt><tt class="py-op">.</tt><tt id="link-83" class="py-name" targets="Method spade.DF.Service.getQ()=spade.DF.Service-class.html#getQ,Method spade.tbcbp.Case.getQ()=spade.tbcbp.Case-class.html#getQ,Method spade.tbcbp.Plan.getQ()=spade.tbcbp.Plan-class.html#getQ"><a title="spade.DF.Service.getQ
spade.tbcbp.Case.getQ
spade.tbcbp.Plan.getQ" class="py-name" href="#" onclick="return doclink('link-83', 'getQ', 'link-83');">getQ</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> <tt class="py-op">&gt;</tt> <tt class="py-number">0</tt> <tt class="py-keyword">and</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-84" class="py-name"><a title="spade.Agent.AbstractAgent.askBelieve
spade.bdi.BDIBehaviour.askBelieve" class="py-name" href="#" onclick="return doclink('link-84', 'askBelieve', 'link-26');">askBelieve</a></tt><tt class="py-op">(</tt><tt class="py-name">plan</tt><tt class="py-op">.</tt><tt id="link-85" class="py-name"><a title="spade.DF.Service.getQ
spade.tbcbp.Case.getQ
spade.tbcbp.Plan.getQ" class="py-name" href="#" onclick="return doclink('link-85', 'getQ', 'link-83');">getQ</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">==</tt><tt class="py-name">False</tt><tt class="py-op">:</tt> </tt>
<a name="L240"></a><tt class="py-lineno">240</tt>  <tt class="py-line">            <tt class="py-comment">#logging.error(color_red+"PLAN FAILED "+str(plan)+color_none)</tt> </tt>
<a name="L241"></a><tt class="py-lineno">241</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-86" class="py-name"><a title="spade.tbcbp.TBCBP" class="py-name" href="#" onclick="return doclink('link-86', 'TBCBP', 'link-17');">TBCBP</a></tt><tt class="py-op">.</tt><tt id="link-87" class="py-name" targets="Method spade.tbcbp.Case.punish()=spade.tbcbp.Case-class.html#punish,Method spade.tbcbp.TBCBP.punish()=spade.tbcbp.TBCBP-class.html#punish"><a title="spade.tbcbp.Case.punish
spade.tbcbp.TBCBP.punish" class="py-name" href="#" onclick="return doclink('link-87', 'punish', 'link-87');">punish</a></tt><tt class="py-op">(</tt><tt class="py-name">plan</tt><tt class="py-op">.</tt><tt id="link-88" class="py-name" targets="Method spade.tbcbp.Plan.getCase()=spade.tbcbp.Plan-class.html#getCase,Method spade.tbcbp.TBCBP.getCase()=spade.tbcbp.TBCBP-class.html#getCase"><a title="spade.tbcbp.Plan.getCase
spade.tbcbp.TBCBP.getCase" class="py-name" href="#" onclick="return doclink('link-88', 'getCase', 'link-88');">getCase</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L242"></a><tt class="py-lineno">242</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt class="py-name">goal</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">goals</tt><tt class="py-op">:</tt> <tt class="py-comment">#deselect the goal that raised the plan</tt> </tt>
<a name="L243"></a><tt class="py-lineno">243</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-name">goal</tt><tt class="py-op">.</tt><tt class="py-name">expression</tt> <tt class="py-op">==</tt> <tt class="py-name">plan</tt><tt class="py-op">.</tt><tt id="link-89" class="py-name"><a title="spade.DF.Service.getQ
spade.tbcbp.Case.getQ
spade.tbcbp.Plan.getQ" class="py-name" href="#" onclick="return doclink('link-89', 'getQ', 'link-83');">getQ</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L244"></a><tt class="py-lineno">244</tt>  <tt class="py-line">                    <tt class="py-name">goal</tt><tt class="py-op">.</tt><tt class="py-name">selected</tt> <tt class="py-op">=</tt> <tt class="py-name">False</tt> </tt>
<a name="L245"></a><tt class="py-lineno">245</tt>  <tt class="py-line">                    <tt class="py-name">goal</tt><tt class="py-op">.</tt><tt id="link-90" class="py-name"><a title="spade.Behaviour.Behaviour.done
spade.Behaviour.FSMBehaviour.done
spade.Behaviour.OneShotBehaviour.done
spade.Behaviour.TimeOutBehaviour.done" class="py-name" href="#" onclick="return doclink('link-90', 'done', 'link-10');">done</a></tt> <tt class="py-op">=</tt> <tt class="py-name">False</tt> </tt>
<a name="L246"></a><tt class="py-lineno">246</tt>  <tt class="py-line">                    <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">active_goals</tt><tt class="py-op">.</tt><tt id="link-91" class="py-name" targets="Method spade.FlexQueue.FlexQueue.remove()=spade.FlexQueue.FlexQueue-class.html#remove"><a title="spade.FlexQueue.FlexQueue.remove" class="py-name" href="#" onclick="return doclink('link-91', 'remove', 'link-91');">remove</a></tt><tt class="py-op">(</tt><tt class="py-name">goal</tt><tt class="py-op">)</tt> </tt>
<a name="L247"></a><tt class="py-lineno">247</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L248"></a><tt class="py-lineno">248</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-92" class="py-name"><a title="spade.tbcbp.TBCBP" class="py-name" href="#" onclick="return doclink('link-92', 'TBCBP', 'link-17');">TBCBP</a></tt><tt class="py-op">.</tt><tt id="link-93" class="py-name" targets="Method spade.tbcbp.Case.reward()=spade.tbcbp.Case-class.html#reward,Method spade.tbcbp.TBCBP.reward()=spade.tbcbp.TBCBP-class.html#reward"><a title="spade.tbcbp.Case.reward
spade.tbcbp.TBCBP.reward" class="py-name" href="#" onclick="return doclink('link-93', 'reward', 'link-93');">reward</a></tt><tt class="py-op">(</tt><tt class="py-name">plan</tt><tt class="py-op">.</tt><tt id="link-94" class="py-name"><a title="spade.tbcbp.Plan.getCase
spade.tbcbp.TBCBP.getCase" class="py-name" href="#" onclick="return doclink('link-94', 'getCase', 'link-88');">getCase</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L249"></a><tt class="py-lineno">249</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">myAgent</tt><tt class="py-op">.</tt><tt id="link-95" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-95', 'DEBUG', 'link-38');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">"Rewarding Plan"</tt><tt class="py-op">,</tt><tt class="py-string">'ok'</tt><tt class="py-op">,</tt><tt class="py-string">'bdi'</tt><tt class="py-op">)</tt> </tt>
<a name="L250"></a><tt class="py-lineno">250</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt class="py-name">goal</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">goals</tt><tt class="py-op">:</tt> <tt class="py-comment">#delete the goal that raised the intention</tt> </tt>
<a name="L251"></a><tt class="py-lineno">251</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-name">goal</tt><tt class="py-op">.</tt><tt class="py-name">expression</tt> <tt class="py-keyword">in</tt> <tt class="py-name">plan</tt><tt class="py-op">.</tt><tt id="link-96" class="py-name"><a title="spade.DF.Service.getQ
spade.tbcbp.Case.getQ
spade.tbcbp.Plan.getQ" class="py-name" href="#" onclick="return doclink('link-96', 'getQ', 'link-83');">getQ</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L252"></a><tt class="py-lineno">252</tt>  <tt class="py-line">                    <tt class="py-keyword">if</tt> <tt class="py-name">goal</tt><tt class="py-op">.</tt><tt class="py-name">persistent</tt><tt class="py-op">:</tt> <tt class="py-comment">#if goal is persistent, deselect it</tt> </tt>
<a name="L253"></a><tt class="py-lineno">253</tt>  <tt class="py-line">                        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">prepared_goals</tt><tt class="py-op">.</tt><tt id="link-97" class="py-name"><a title="spade.FlexQueue.FlexQueue.put" class="py-name" href="#" onclick="return doclink('link-97', 'put', 'link-71');">put</a></tt><tt class="py-op">(</tt><tt class="py-name">goal</tt><tt class="py-op">)</tt> </tt>
<a name="L254"></a><tt class="py-lineno">254</tt>  <tt class="py-line">                    <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">active_goals</tt><tt class="py-op">.</tt><tt id="link-98" class="py-name"><a title="spade.FlexQueue.FlexQueue.remove" class="py-name" href="#" onclick="return doclink('link-98', 'remove', 'link-91');">remove</a></tt><tt class="py-op">(</tt><tt class="py-name">goal</tt><tt class="py-op">)</tt> </tt>
<a name="L255"></a><tt class="py-lineno">255</tt>  <tt class="py-line">                    <tt class="py-name">goal</tt><tt class="py-op">.</tt><tt id="link-99" class="py-name"><a title="spade.Behaviour.Behaviour.done
spade.Behaviour.FSMBehaviour.done
spade.Behaviour.OneShotBehaviour.done
spade.Behaviour.TimeOutBehaviour.done" class="py-name" href="#" onclick="return doclink('link-99', 'done', 'link-10');">done</a></tt> <tt class="py-op">=</tt> <tt class="py-name">True</tt> </tt>
<a name="L256"></a><tt class="py-lineno">256</tt>  <tt class="py-line">                    <tt class="py-name">goal</tt><tt class="py-op">.</tt><tt class="py-name">selected</tt> <tt class="py-op">=</tt> <tt class="py-name">False</tt> </tt>
<a name="L257"></a><tt class="py-lineno">257</tt>  <tt class="py-line">                    <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">myAgent</tt><tt class="py-op">.</tt><tt id="link-100" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-100', 'DEBUG', 'link-38');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">"Goal "</tt><tt class="py-op">+</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">goal</tt><tt class="py-op">.</tt><tt class="py-name">expression</tt><tt class="py-op">)</tt><tt class="py-op">+</tt><tt class="py-string">" was completed!"</tt><tt class="py-op">,</tt><tt class="py-string">'ok'</tt><tt class="py-op">,</tt><tt class="py-string">'bdi'</tt><tt class="py-op">)</tt> </tt>
<a name="L258"></a><tt class="py-lineno">258</tt>  <tt class="py-line">                    <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">myAgent</tt><tt class="py-op">.</tt><tt id="link-101" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-101', 'DEBUG', 'link-38');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">"Calling goal completed CB: "</tt><tt class="py-op">+</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-102" class="py-name" targets="Method spade.bdi.BDIBehaviour.goalCompletedCB()=spade.bdi.BDIBehaviour-class.html#goalCompletedCB"><a title="spade.bdi.BDIBehaviour.goalCompletedCB" class="py-name" href="#" onclick="return doclink('link-102', 'goalCompletedCB', 'link-102');">goalCompletedCB</a></tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-string">'info'</tt><tt class="py-op">,</tt><tt class="py-string">'bdi'</tt><tt class="py-op">)</tt> </tt>
<a name="L259"></a><tt class="py-lineno">259</tt>  <tt class="py-line">                    <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-103" class="py-name"><a title="spade.bdi.BDIBehaviour.goalCompletedCB" class="py-name" href="#" onclick="return doclink('link-103', 'goalCompletedCB', 'link-102');">goalCompletedCB</a></tt><tt class="py-op">(</tt><tt class="py-name">goal</tt><tt class="py-op">)</tt> </tt>
</div><a name="L260"></a><tt class="py-lineno">260</tt>  <tt class="py-line"> </tt>
<a name="BDIBehaviour.EndService"></a><div id="BDIBehaviour.EndService-def"><a name="L261"></a><tt class="py-lineno">261</tt> <a class="py-toggle" href="#" id="BDIBehaviour.EndService-toggle" onclick="return toggle('BDIBehaviour.EndService');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.bdi.BDIBehaviour-class.html#EndService">EndService</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">service</tt><tt class="py-op">,</tt><tt class="py-param">plan</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BDIBehaviour.EndService-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="BDIBehaviour.EndService-expanded"><a name="L262"></a><tt class="py-lineno">262</tt>  <tt class="py-line">        <tt class="py-docstring">'''Finishes the execution of a service.</tt> </tt>
<a name="L263"></a><tt class="py-lineno">263</tt>  <tt class="py-line"><tt class="py-docstring">        If the service failed, it is punished and the plan is finished.</tt> </tt>
<a name="L264"></a><tt class="py-lineno">264</tt>  <tt class="py-line"><tt class="py-docstring">        Otherwise, the next service of the plan is selected.</tt> </tt>
<a name="L265"></a><tt class="py-lineno">265</tt>  <tt class="py-line"><tt class="py-docstring">        Usage: EndService ( service, plan)</tt> </tt>
<a name="L266"></a><tt class="py-lineno">266</tt>  <tt class="py-line"><tt class="py-docstring">        service - the current running DF.Service</tt> </tt>
<a name="L267"></a><tt class="py-lineno">267</tt>  <tt class="py-line"><tt class="py-docstring">        plan    - the TBCBP.Plan where the service belongs</tt> </tt>
<a name="L268"></a><tt class="py-lineno">268</tt>  <tt class="py-line"><tt class="py-docstring">        '''</tt> </tt>
<a name="L269"></a><tt class="py-lineno">269</tt>  <tt class="py-line"> </tt>
<a name="L270"></a><tt class="py-lineno">270</tt>  <tt class="py-line">        <tt class="py-name">agent</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt> </tt>
<a name="L271"></a><tt class="py-lineno">271</tt>  <tt class="py-line">        <tt class="py-name">pid</tt> <tt class="py-op">=</tt> <tt class="py-name">plan</tt><tt class="py-op">.</tt><tt class="py-name">pid</tt> </tt>
<a name="L272"></a><tt class="py-lineno">272</tt>  <tt class="py-line">        <tt class="py-comment">#service has been executed</tt> </tt>
<a name="L273"></a><tt class="py-lineno">273</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">service</tt><tt class="py-op">.</tt><tt id="link-104" class="py-name"><a title="spade.DF.Service.getQ
spade.tbcbp.Case.getQ
spade.tbcbp.Plan.getQ" class="py-name" href="#" onclick="return doclink('link-104', 'getQ', 'link-83');">getQ</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> <tt class="py-op">&gt;</tt> <tt class="py-number">0</tt> <tt class="py-keyword">and</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-105" class="py-name"><a title="spade.Agent.AbstractAgent.askBelieve
spade.bdi.BDIBehaviour.askBelieve" class="py-name" href="#" onclick="return doclink('link-105', 'askBelieve', 'link-26');">askBelieve</a></tt><tt class="py-op">(</tt><tt class="py-name">service</tt><tt class="py-op">.</tt><tt id="link-106" class="py-name"><a title="spade.DF.Service.getQ
spade.tbcbp.Case.getQ
spade.tbcbp.Plan.getQ" class="py-name" href="#" onclick="return doclink('link-106', 'getQ', 'link-83');">getQ</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">==</tt><tt class="py-name">False</tt><tt class="py-op">:</tt> </tt>
<a name="L274"></a><tt class="py-lineno">274</tt>  <tt class="py-line">            <tt class="py-comment">#service failed</tt> </tt>
<a name="L275"></a><tt class="py-lineno">275</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">myAgent</tt><tt class="py-op">.</tt><tt id="link-107" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-107', 'DEBUG', 'link-38');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">"Service execution failed: "</tt><tt class="py-op">+</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">service</tt><tt class="py-op">.</tt><tt id="link-108" class="py-name"><a title="spade.DF.Service.getQ
spade.tbcbp.Case.getQ
spade.tbcbp.Plan.getQ" class="py-name" href="#" onclick="return doclink('link-108', 'getQ', 'link-83');">getQ</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L276"></a><tt class="py-lineno">276</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-109" class="py-name" targets="Method spade.bdi.BDIBehaviour.punishService()=spade.bdi.BDIBehaviour-class.html#punishService"><a title="spade.bdi.BDIBehaviour.punishService" class="py-name" href="#" onclick="return doclink('link-109', 'punishService', 'link-109');">punishService</a></tt><tt class="py-op">(</tt><tt class="py-name">service</tt><tt class="py-op">)</tt> </tt>
<a name="L277"></a><tt class="py-lineno">277</tt>  <tt class="py-line">            <tt class="py-comment">#cancel plan and reactivate goal</tt> </tt>
<a name="L278"></a><tt class="py-lineno">278</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-110" class="py-name"><a title="spade.bdi.BDIBehaviour.EndPlan" class="py-name" href="#" onclick="return doclink('link-110', 'EndPlan', 'link-78');">EndPlan</a></tt><tt class="py-op">(</tt><tt class="py-name">pid</tt><tt class="py-op">,</tt><tt class="py-name">plan</tt><tt class="py-op">)</tt> </tt>
<a name="L279"></a><tt class="py-lineno">279</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> </tt>
<a name="L280"></a><tt class="py-lineno">280</tt>  <tt class="py-line"> </tt>
<a name="L281"></a><tt class="py-lineno">281</tt>  <tt class="py-line">        <tt class="py-comment">#5.2.1 select next service</tt> </tt>
<a name="L282"></a><tt class="py-lineno">282</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-111" class="py-name"><a title="spade.bdi.BDIBehaviour.insertNextService" class="py-name" href="#" onclick="return doclink('link-111', 'insertNextService', 'link-73');">insertNextService</a></tt><tt class="py-op">(</tt><tt class="py-name">plan</tt><tt class="py-op">,</tt> <tt class="py-name">pid</tt><tt class="py-op">)</tt> </tt>
<a name="L283"></a><tt class="py-lineno">283</tt>  <tt class="py-line"> </tt>
<a name="L284"></a><tt class="py-lineno">284</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-112" class="py-name" targets="Method spade.bdi.BDIBehaviour.serviceCompletedCB()=spade.bdi.BDIBehaviour-class.html#serviceCompletedCB"><a title="spade.bdi.BDIBehaviour.serviceCompletedCB" class="py-name" href="#" onclick="return doclink('link-112', 'serviceCompletedCB', 'link-112');">serviceCompletedCB</a></tt><tt class="py-op">(</tt><tt class="py-name">service</tt><tt class="py-op">)</tt> </tt>
</div><a name="L285"></a><tt class="py-lineno">285</tt>  <tt class="py-line"> </tt>
<a name="BDIBehaviour.deliberate"></a><div id="BDIBehaviour.deliberate-def"><a name="L286"></a><tt class="py-lineno">286</tt> <a class="py-toggle" href="#" id="BDIBehaviour.deliberate-toggle" onclick="return toggle('BDIBehaviour.deliberate');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.bdi.BDIBehaviour-class.html#deliberate">deliberate</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BDIBehaviour.deliberate-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="BDIBehaviour.deliberate-expanded"><a name="L287"></a><tt class="py-lineno">287</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">myAgent</tt><tt class="py-op">.</tt><tt id="link-113" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-113', 'DEBUG', 'link-38');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">"deliberate about current goals: "</tt><tt class="py-op">+</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">goals</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-string">'info'</tt><tt class="py-op">,</tt><tt class="py-string">'bdi'</tt><tt class="py-op">)</tt> </tt>
<a name="L288"></a><tt class="py-lineno">288</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">goal</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">goals</tt><tt class="py-op">:</tt> </tt>
<a name="L289"></a><tt class="py-lineno">289</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-op">(</tt><tt class="py-name">goal</tt><tt class="py-op">.</tt><tt class="py-name">unreachable</tt> <tt class="py-op">==</tt> <tt class="py-name">False</tt><tt class="py-op">)</tt> <tt class="py-keyword">and</tt> <tt class="py-op">(</tt><tt class="py-name">goal</tt><tt class="py-op">.</tt><tt id="link-114" class="py-name"><a title="spade.Behaviour.Behaviour.done
spade.Behaviour.FSMBehaviour.done
spade.Behaviour.OneShotBehaviour.done
spade.Behaviour.TimeOutBehaviour.done" class="py-name" href="#" onclick="return doclink('link-114', 'done', 'link-10');">done</a></tt><tt class="py-op">==</tt><tt class="py-name">False</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-comment"># or ((goal.done==True) and (goal.persistent==True))):</tt> </tt>
<a name="L290"></a><tt class="py-lineno">290</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-115" class="py-name"><a title="spade.Agent.AbstractAgent.askBelieve
spade.bdi.BDIBehaviour.askBelieve" class="py-name" href="#" onclick="return doclink('link-115', 'askBelieve', 'link-26');">askBelieve</a></tt><tt class="py-op">(</tt><tt class="py-name">goal</tt><tt class="py-op">.</tt><tt class="py-name">expression</tt><tt class="py-op">)</tt><tt class="py-op">==</tt><tt class="py-name">False</tt><tt class="py-op">:</tt> </tt>
<a name="L291"></a><tt class="py-lineno">291</tt>  <tt class="py-line">                    <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">myAgent</tt><tt class="py-op">.</tt><tt id="link-116" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-116', 'DEBUG', 'link-38');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">"Deliberate about "</tt> <tt class="py-op">+</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">goal</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-string">'info'</tt><tt class="py-op">,</tt><tt class="py-string">'bdi'</tt><tt class="py-op">)</tt> </tt>
<a name="L292"></a><tt class="py-lineno">292</tt>  <tt class="py-line">                    <tt class="py-keyword">if</tt> <tt class="py-name">goal</tt> <tt class="py-keyword">not</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">active_goals</tt><tt class="py-op">:</tt> </tt>
<a name="L293"></a><tt class="py-lineno">293</tt>  <tt class="py-line">                        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">prepared_goals</tt><tt class="py-op">.</tt><tt id="link-117" class="py-name"><a title="spade.FlexQueue.FlexQueue.put" class="py-name" href="#" onclick="return doclink('link-117', 'put', 'link-71');">put</a></tt><tt class="py-op">(</tt><tt class="py-name">goal</tt><tt class="py-op">)</tt> </tt>
<a name="L294"></a><tt class="py-lineno">294</tt>  <tt class="py-line">                <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L295"></a><tt class="py-lineno">295</tt>  <tt class="py-line">                    <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">myAgent</tt><tt class="py-op">.</tt><tt id="link-118" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-118', 'DEBUG', 'link-38');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">"Goal "</tt> <tt class="py-op">+</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">goal</tt><tt class="py-op">)</tt> <tt class="py-op">+</tt> <tt class="py-string">"is already in the KB: "</tt> <tt class="py-op">+</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-119" class="py-name"><a title="spade.Agent.AbstractAgent.askBelieve
spade.bdi.BDIBehaviour.askBelieve" class="py-name" href="#" onclick="return doclink('link-119', 'askBelieve', 'link-26');">askBelieve</a></tt><tt class="py-op">(</tt><tt class="py-name">goal</tt><tt class="py-op">.</tt><tt class="py-name">expression</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-string">'warn'</tt><tt class="py-op">,</tt><tt class="py-string">'bdi'</tt><tt class="py-op">)</tt> </tt>
<a name="L296"></a><tt class="py-lineno">296</tt>  <tt class="py-line">                    <tt class="py-name">goal</tt><tt class="py-op">.</tt><tt id="link-120" class="py-name"><a title="spade.Behaviour.Behaviour.done
spade.Behaviour.FSMBehaviour.done
spade.Behaviour.OneShotBehaviour.done
spade.Behaviour.TimeOutBehaviour.done" class="py-name" href="#" onclick="return doclink('link-120', 'done', 'link-10');">done</a></tt> <tt class="py-op">=</tt> <tt class="py-name">True</tt> </tt>
</div><a name="L297"></a><tt class="py-lineno">297</tt>  <tt class="py-line"> </tt>
<a name="L298"></a><tt class="py-lineno">298</tt>  <tt class="py-line"> </tt>
<a name="BDIBehaviour.discover"></a><div id="BDIBehaviour.discover-def"><a name="L299"></a><tt class="py-lineno">299</tt> <a class="py-toggle" href="#" id="BDIBehaviour.discover-toggle" onclick="return toggle('BDIBehaviour.discover');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.bdi.BDIBehaviour-class.html#discover">discover</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BDIBehaviour.discover-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="BDIBehaviour.discover-expanded"><a name="L300"></a><tt class="py-lineno">300</tt>  <tt class="py-line">        <tt class="py-comment">#TODO: use PubSub features</tt> </tt>
<a name="L301"></a><tt class="py-lineno">301</tt>  <tt class="py-line">        <tt class="py-name">s</tt> <tt class="py-op">=</tt> <tt id="link-121" class="py-name"><a title="spade.DF
spade.DF.DF" class="py-name" href="#" onclick="return doclink('link-121', 'DF', 'link-6');">DF</a></tt><tt class="py-op">.</tt><tt id="link-122" class="py-name" targets="Class spade.DF.Service=spade.DF.Service-class.html"><a title="spade.DF.Service" class="py-name" href="#" onclick="return doclink('link-122', 'Service', 'link-122');">Service</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L302"></a><tt class="py-lineno">302</tt>  <tt class="py-line">        <tt class="py-name">results</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">myAgent</tt><tt class="py-op">.</tt><tt id="link-123" class="py-name" targets="Method spade.Agent.AbstractAgent.searchService()=spade.Agent.AbstractAgent-class.html#searchService"><a title="spade.Agent.AbstractAgent.searchService" class="py-name" href="#" onclick="return doclink('link-123', 'searchService', 'link-123');">searchService</a></tt><tt class="py-op">(</tt><tt class="py-name">s</tt><tt class="py-op">)</tt> </tt>
<a name="L303"></a><tt class="py-lineno">303</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">results</tt><tt class="py-op">!=</tt><tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L304"></a><tt class="py-lineno">304</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">myAgent</tt><tt class="py-op">.</tt><tt id="link-124" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-124', 'DEBUG', 'link-38');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">"Discovered "</tt><tt class="py-op">+</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">results</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">+</tt> <tt class="py-string">" services."</tt><tt class="py-op">,</tt> <tt class="py-string">'info'</tt><tt class="py-op">,</tt><tt class="py-string">'bdi'</tt><tt class="py-op">)</tt> </tt>
<a name="L305"></a><tt class="py-lineno">305</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt class="py-name">service</tt> <tt class="py-keyword">in</tt> <tt class="py-name">results</tt><tt class="py-op">:</tt> </tt>
<a name="L306"></a><tt class="py-lineno">306</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-125" class="py-name"><a title="spade.tbcbp.TBCBP" class="py-name" href="#" onclick="return doclink('link-125', 'TBCBP', 'link-17');">TBCBP</a></tt><tt class="py-op">.</tt><tt id="link-126" class="py-name"><a title="spade.tbcbp.TBCBP.getService" class="py-name" href="#" onclick="return doclink('link-126', 'getService', 'link-80');">getService</a></tt><tt class="py-op">(</tt><tt class="py-name">service</tt><tt class="py-op">.</tt><tt id="link-127" class="py-name"><a title="spade.AID.aid.getName
spade.Agent.AbstractAgent.getName
spade.DF.DfAgentDescription.getName
spade.DF.Service.getName
spade.DF.ServiceDescription.getName
spade.pyparsing.ParseResults.getName
spade.xmpp.roster.Roster.getName
spade.xmpp.simplexml.Node.getName
spade.xmppd.modules.muc.Room.getName
spade.xmppd.modules.wq.Group.getName
spade.xmppd.xmppd.Session.getName" class="py-name" href="#" onclick="return doclink('link-127', 'getName', 'link-54');">getName</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L307"></a><tt class="py-lineno">307</tt>  <tt class="py-line">                    <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-128" class="py-name" targets="Method spade.bdi.BDIBehaviour.registerServiceInTBCBP()=spade.bdi.BDIBehaviour-class.html#registerServiceInTBCBP"><a title="spade.bdi.BDIBehaviour.registerServiceInTBCBP" class="py-name" href="#" onclick="return doclink('link-128', 'registerServiceInTBCBP', 'link-128');">registerServiceInTBCBP</a></tt><tt class="py-op">(</tt><tt class="py-name">service</tt><tt class="py-op">)</tt> </tt>
</div><a name="L308"></a><tt class="py-lineno">308</tt>  <tt class="py-line"> </tt>
<a name="BDIBehaviour.punishService"></a><div id="BDIBehaviour.punishService-def"><a name="L309"></a><tt class="py-lineno">309</tt> <a class="py-toggle" href="#" id="BDIBehaviour.punishService-toggle" onclick="return toggle('BDIBehaviour.punishService');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.bdi.BDIBehaviour-class.html#punishService">punishService</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">service</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BDIBehaviour.punishService-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="BDIBehaviour.punishService-expanded"><a name="L310"></a><tt class="py-lineno">310</tt>  <tt class="py-line">        <tt id="link-129" class="py-name" targets="Variable spade.Agent.P=spade.Agent-module.html#P,Variable spade.bdi.P=spade.bdi-module.html#P,Variable spade.logic.P=spade.logic-module.html#P"><a title="spade.Agent.P
spade.bdi.P
spade.logic.P" class="py-name" href="#" onclick="return doclink('link-129', 'P', 'link-129');">P</a></tt> <tt class="py-op">=</tt> <tt class="py-name">service</tt><tt class="py-op">.</tt><tt id="link-130" class="py-name" targets="Method spade.DF.Service.getP()=spade.DF.Service-class.html#getP,Method spade.tbcbp.Case.getP()=spade.tbcbp.Case-class.html#getP,Method spade.tbcbp.Plan.getP()=spade.tbcbp.Plan-class.html#getP"><a title="spade.DF.Service.getP
spade.tbcbp.Case.getP
spade.tbcbp.Plan.getP" class="py-name" href="#" onclick="return doclink('link-130', 'getP', 'link-130');">getP</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L311"></a><tt class="py-lineno">311</tt>  <tt class="py-line">        <tt id="link-131" class="py-name" targets="Variable spade.Agent.Q=spade.Agent-module.html#Q,Variable spade.bdi.Q=spade.bdi-module.html#Q,Variable spade.logic.Q=spade.logic-module.html#Q"><a title="spade.Agent.Q
spade.bdi.Q
spade.logic.Q" class="py-name" href="#" onclick="return doclink('link-131', 'Q', 'link-131');">Q</a></tt> <tt class="py-op">=</tt> <tt class="py-name">service</tt><tt class="py-op">.</tt><tt id="link-132" class="py-name"><a title="spade.DF.Service.getQ
spade.tbcbp.Case.getQ
spade.tbcbp.Plan.getQ" class="py-name" href="#" onclick="return doclink('link-132', 'getQ', 'link-83');">getQ</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L312"></a><tt class="py-lineno">312</tt>  <tt class="py-line">        <tt class="py-name">I</tt> <tt class="py-op">=</tt> <tt class="py-name">service</tt><tt class="py-op">.</tt><tt id="link-133" class="py-name" targets="Method spade.DF.Service.getInputs()=spade.DF.Service-class.html#getInputs,Method spade.tbcbp.Case.getInputs()=spade.tbcbp.Case-class.html#getInputs,Method spade.tbcbp.Plan.getInputs()=spade.tbcbp.Plan-class.html#getInputs"><a title="spade.DF.Service.getInputs
spade.tbcbp.Case.getInputs
spade.tbcbp.Plan.getInputs" class="py-name" href="#" onclick="return doclink('link-133', 'getInputs', 'link-133');">getInputs</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L313"></a><tt class="py-lineno">313</tt>  <tt class="py-line">        <tt class="py-name">O</tt> <tt class="py-op">=</tt> <tt class="py-name">service</tt><tt class="py-op">.</tt><tt id="link-134" class="py-name" targets="Method spade.DF.Service.getOutputs()=spade.DF.Service-class.html#getOutputs,Method spade.tbcbp.Case.getOutputs()=spade.tbcbp.Case-class.html#getOutputs,Method spade.tbcbp.Plan.getOutputs()=spade.tbcbp.Plan-class.html#getOutputs"><a title="spade.DF.Service.getOutputs
spade.tbcbp.Case.getOutputs
spade.tbcbp.Plan.getOutputs" class="py-name" href="#" onclick="return doclink('link-134', 'getOutputs', 'link-134');">getOutputs</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L314"></a><tt class="py-lineno">314</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-135" class="py-name"><a title="spade.tbcbp.TBCBP" class="py-name" href="#" onclick="return doclink('link-135', 'TBCBP', 'link-17');">TBCBP</a></tt><tt class="py-op">.</tt><tt id="link-136" class="py-name"><a title="spade.tbcbp.Case.punish
spade.tbcbp.TBCBP.punish" class="py-name" href="#" onclick="return doclink('link-136', 'punish', 'link-87');">punish</a></tt><tt class="py-op">(</tt><tt id="link-137" class="py-name" targets="Class spade.tbcbp.Case=spade.tbcbp.Case-class.html"><a title="spade.tbcbp.Case" class="py-name" href="#" onclick="return doclink('link-137', 'Case', 'link-137');">Case</a></tt><tt class="py-op">(</tt><tt id="link-138" class="py-name"><a title="spade.Agent.P
spade.bdi.P
spade.logic.P" class="py-name" href="#" onclick="return doclink('link-138', 'P', 'link-129');">P</a></tt><tt class="py-op">=</tt><tt id="link-139" class="py-name"><a title="spade.Agent.P
spade.bdi.P
spade.logic.P" class="py-name" href="#" onclick="return doclink('link-139', 'P', 'link-129');">P</a></tt><tt class="py-op">,</tt><tt id="link-140" class="py-name"><a title="spade.Agent.Q
spade.bdi.Q
spade.logic.Q" class="py-name" href="#" onclick="return doclink('link-140', 'Q', 'link-131');">Q</a></tt><tt class="py-op">=</tt><tt id="link-141" class="py-name"><a title="spade.Agent.Q
spade.bdi.Q
spade.logic.Q" class="py-name" href="#" onclick="return doclink('link-141', 'Q', 'link-131');">Q</a></tt><tt class="py-op">,</tt><tt class="py-name">inputs</tt><tt class="py-op">=</tt><tt class="py-name">I</tt><tt class="py-op">,</tt><tt class="py-name">outputs</tt><tt class="py-op">=</tt><tt class="py-name">O</tt><tt class="py-op">,</tt><tt id="link-142" class="py-name"><a title="spade.Platform.SpadePlatform.services" class="py-name" href="#" onclick="return doclink('link-142', 'services', 'link-33');">services</a></tt><tt class="py-op">=</tt><tt class="py-op">[</tt><tt class="py-name">service</tt><tt class="py-op">.</tt><tt id="link-143" class="py-name"><a title="spade.AID.aid.getName
spade.Agent.AbstractAgent.getName
spade.DF.DfAgentDescription.getName
spade.DF.Service.getName
spade.DF.ServiceDescription.getName
spade.pyparsing.ParseResults.getName
spade.xmpp.roster.Roster.getName
spade.xmpp.simplexml.Node.getName
spade.xmppd.modules.muc.Room.getName
spade.xmppd.modules.wq.Group.getName
spade.xmppd.xmppd.Session.getName" class="py-name" href="#" onclick="return doclink('link-143', 'getName', 'link-54');">getName</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L315"></a><tt class="py-lineno">315</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> </tt>
</div><a name="L316"></a><tt class="py-lineno">316</tt>  <tt class="py-line">                         </tt>
<a name="L317"></a><tt class="py-lineno">317</tt>  <tt class="py-line"> </tt>
<a name="L318"></a><tt class="py-lineno">318</tt>  <tt class="py-line">        <tt class="py-comment">####Init The agent</tt> </tt>
<a name="L319"></a><tt class="py-lineno">319</tt>  <tt class="py-line">        <tt class="py-comment">###self._setup()</tt> </tt>
<a name="L320"></a><tt class="py-lineno">320</tt>  <tt class="py-line">        <tt class="py-comment">###self.behavioursGo.acquire()</tt> </tt>
<a name="L321"></a><tt class="py-lineno">321</tt>  <tt class="py-line">        <tt class="py-comment">###self._running = True</tt> </tt>
<a name="L322"></a><tt class="py-lineno">322</tt>  <tt class="py-line">        <tt class="py-comment">###self.behavioursGo.notifyAll()</tt> </tt>
<a name="L323"></a><tt class="py-lineno">323</tt>  <tt class="py-line">        <tt class="py-comment">###self.behavioursGo.release()</tt> </tt>
<a name="L324"></a><tt class="py-lineno">324</tt>  <tt class="py-line"> </tt>
<a name="L325"></a><tt class="py-lineno">325</tt>  <tt class="py-line">        <tt class="py-comment">#############</tt> </tt>
<a name="L326"></a><tt class="py-lineno">326</tt>  <tt class="py-line">        <tt class="py-comment"># Main Loop #</tt> </tt>
<a name="L327"></a><tt class="py-lineno">327</tt>  <tt class="py-line">        <tt class="py-comment">#############</tt> </tt>
<a name="L328"></a><tt class="py-lineno">328</tt>  <tt class="py-line">        <tt class="py-comment">###while not self.forceKill():</tt> </tt>
<a name="L329"></a><tt class="py-lineno">329</tt>  <tt class="py-line">        <tt class="py-comment">###    try:</tt> </tt>
<a name="L330"></a><tt class="py-lineno">330</tt>  <tt class="py-line">        <tt class="py-comment">###        #get and process all messages</tt> </tt>
<a name="L331"></a><tt class="py-lineno">331</tt>  <tt class="py-line">        <tt class="py-comment">###        self.getMessages()</tt> </tt>
<a name="L332"></a><tt class="py-lineno">332</tt>  <tt class="py-line"> </tt>
<a name="BDIBehaviour._onTick"></a><div id="BDIBehaviour._onTick-def"><a name="L333"></a><tt class="py-lineno">333</tt> <a class="py-toggle" href="#" id="BDIBehaviour._onTick-toggle" onclick="return toggle('BDIBehaviour._onTick');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.bdi.BDIBehaviour-class.html#_onTick">_onTick</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BDIBehaviour._onTick-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="BDIBehaviour._onTick-expanded"><a name="L334"></a><tt class="py-lineno">334</tt>  <tt class="py-line">        <tt class="py-docstring">"""</tt> </tt>
<a name="L335"></a><tt class="py-lineno">335</tt>  <tt class="py-line"><tt class="py-docstring">        periodic behaviour execution</tt> </tt>
<a name="L336"></a><tt class="py-lineno">336</tt>  <tt class="py-line"><tt class="py-docstring">        """</tt> </tt>
<a name="L337"></a><tt class="py-lineno">337</tt>  <tt class="py-line">        <tt class="py-comment">#discover new services</tt> </tt>
<a name="L338"></a><tt class="py-lineno">338</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">myAgent</tt><tt class="py-op">.</tt><tt id="link-144" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-144', 'DEBUG', 'link-38');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">"Discover new services..."</tt><tt class="py-op">,</tt> <tt class="py-string">'info'</tt><tt class="py-op">,</tt><tt class="py-string">'bdi'</tt><tt class="py-op">)</tt> </tt>
<a name="L339"></a><tt class="py-lineno">339</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-145" class="py-name" targets="Method spade.bdi.BDIBehaviour.discover()=spade.bdi.BDIBehaviour-class.html#discover"><a title="spade.bdi.BDIBehaviour.discover" class="py-name" href="#" onclick="return doclink('link-145', 'discover', 'link-145');">discover</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L340"></a><tt class="py-lineno">340</tt>  <tt class="py-line">         </tt>
<a name="L341"></a><tt class="py-lineno">341</tt>  <tt class="py-line">        <tt class="py-comment">#deliberate about current goals</tt> </tt>
<a name="L342"></a><tt class="py-lineno">342</tt>  <tt class="py-line">        <tt class="py-comment">#if self._needDeliberate:</tt> </tt>
<a name="L343"></a><tt class="py-lineno">343</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">myAgent</tt><tt class="py-op">.</tt><tt id="link-146" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-146', 'DEBUG', 'link-38');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">"Deliberating..."</tt><tt class="py-op">,</tt> <tt class="py-string">'info'</tt><tt class="py-op">,</tt><tt class="py-string">'bdi'</tt><tt class="py-op">)</tt> </tt>
<a name="L344"></a><tt class="py-lineno">344</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-147" class="py-name" targets="Method spade.bdi.BDIBehaviour.deliberate()=spade.bdi.BDIBehaviour-class.html#deliberate"><a title="spade.bdi.BDIBehaviour.deliberate" class="py-name" href="#" onclick="return doclink('link-147', 'deliberate', 'link-147');">deliberate</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L345"></a><tt class="py-lineno">345</tt>  <tt class="py-line">        <tt class="py-comment">#self._needDeliberate = False</tt> </tt>
<a name="L346"></a><tt class="py-lineno">346</tt>  <tt class="py-line">             </tt>
<a name="L347"></a><tt class="py-lineno">347</tt>  <tt class="py-line">        <tt class="py-comment">#select intentions</tt> </tt>
<a name="L348"></a><tt class="py-lineno">348</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-148" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-148', 'DEBUG', 'link-38');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">"select intentions"</tt><tt class="py-op">,</tt> <tt class="py-string">'info'</tt><tt class="py-op">,</tt><tt class="py-string">'bdi'</tt><tt class="py-op">)</tt> </tt>
<a name="L349"></a><tt class="py-lineno">349</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-149" class="py-name" targets="Method spade.bdi.BDIBehaviour.selectIntentions()=spade.bdi.BDIBehaviour-class.html#selectIntentions"><a title="spade.bdi.BDIBehaviour.selectIntentions" class="py-name" href="#" onclick="return doclink('link-149', 'selectIntentions', 'link-149');">selectIntentions</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L350"></a><tt class="py-lineno">350</tt>  <tt class="py-line">         </tt>
<a name="L351"></a><tt class="py-lineno">351</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">myAgent</tt><tt class="py-op">.</tt><tt id="link-150" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-150', 'DEBUG', 'link-38');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">"Init scheduler"</tt><tt class="py-op">,</tt> <tt class="py-string">'info'</tt><tt class="py-op">,</tt><tt class="py-string">'bdi'</tt><tt class="py-op">)</tt> </tt>
<a name="L352"></a><tt class="py-lineno">352</tt>  <tt class="py-line">        <tt class="py-comment">#run a service each iteration</tt> </tt>
<a name="L353"></a><tt class="py-lineno">353</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">scheduler</tt><tt class="py-op">.</tt><tt id="link-151" class="py-name" targets="Variable spade.ACLParser.empty=spade.ACLParser-module.html#empty,Variable spade.AMS.empty=spade.AMS-module.html#empty,Variable spade.DF.empty=spade.DF-module.html#empty,Method spade.FlexQueue.FlexQueue.empty()=spade.FlexQueue.FlexQueue-class.html#empty,Variable spade.SL0Parser.empty=spade.SL0Parser-module.html#empty,Variable spade.pyparsing.empty=spade.pyparsing-module.html#empty"><a title="spade.ACLParser.empty
spade.AMS.empty
spade.DF.empty
spade.FlexQueue.FlexQueue.empty
spade.SL0Parser.empty
spade.pyparsing.empty" class="py-name" href="#" onclick="return doclink('link-151', 'empty', 'link-151');">empty</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L354"></a><tt class="py-lineno">354</tt>  <tt class="py-line">            <tt class="py-name">service</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">scheduler</tt><tt class="py-op">.</tt><tt id="link-152" class="py-name"><a title="spade.FlexQueue.FlexQueue.get
spade.kb.KB.get
spade.tbcbp.CaseDB.get
spade.xmppd.modules.db_fake.DB.get" class="py-name" href="#" onclick="return doclink('link-152', 'get', 'link-31');">get</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L355"></a><tt class="py-lineno">355</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">myAgent</tt><tt class="py-op">.</tt><tt id="link-153" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-153', 'DEBUG', 'link-38');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">"Got service for execution: "</tt> <tt class="py-op">+</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">service</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-string">'info'</tt><tt class="py-op">,</tt><tt class="py-string">'bdi'</tt><tt class="py-op">)</tt> </tt>
<a name="L356"></a><tt class="py-lineno">356</tt>  <tt class="py-line">         </tt>
<a name="L357"></a><tt class="py-lineno">357</tt>  <tt class="py-line">            <tt class="py-comment">#if service!=None:</tt> </tt>
<a name="L358"></a><tt class="py-lineno">358</tt>  <tt class="py-line">            <tt class="py-name">pid</tt> <tt class="py-op">=</tt> <tt class="py-name">service</tt><tt class="py-op">.</tt><tt class="py-name">pid</tt> </tt>
<a name="L359"></a><tt class="py-lineno">359</tt>  <tt class="py-line">            <tt class="py-name">plan</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">plans</tt><tt class="py-op">[</tt><tt class="py-name">pid</tt><tt class="py-op">]</tt> </tt>
<a name="L360"></a><tt class="py-lineno">360</tt>  <tt class="py-line">            <tt class="py-keyword">try</tt><tt class="py-op">:</tt>  </tt>
<a name="L361"></a><tt class="py-lineno">361</tt>  <tt class="py-line">                <tt class="py-name">result</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">myAgent</tt><tt class="py-op">.</tt><tt id="link-154" class="py-name" targets="Method spade.Agent.AbstractAgent.invokeService()=spade.Agent.AbstractAgent-class.html#invokeService"><a title="spade.Agent.AbstractAgent.invokeService" class="py-name" href="#" onclick="return doclink('link-154', 'invokeService', 'link-154');">invokeService</a></tt><tt class="py-op">(</tt><tt class="py-name">service</tt><tt class="py-op">)</tt> </tt>
<a name="L362"></a><tt class="py-lineno">362</tt>  <tt class="py-line">            <tt class="py-keyword">except</tt><tt class="py-op">:</tt> </tt>
<a name="L363"></a><tt class="py-lineno">363</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">myAgent</tt><tt class="py-op">.</tt><tt id="link-155" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-155', 'DEBUG', 'link-38');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">"Service failed!"</tt><tt class="py-op">,</tt> <tt class="py-string">'warn'</tt><tt class="py-op">,</tt><tt class="py-string">'bdi'</tt><tt class="py-op">)</tt> </tt>
<a name="L364"></a><tt class="py-lineno">364</tt>  <tt class="py-line"> </tt>
<a name="L365"></a><tt class="py-lineno">365</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-156" class="py-name" targets="Method spade.bdi.BDIBehaviour.EndService()=spade.bdi.BDIBehaviour-class.html#EndService"><a title="spade.bdi.BDIBehaviour.EndService" class="py-name" href="#" onclick="return doclink('link-156', 'EndService', 'link-156');">EndService</a></tt><tt class="py-op">(</tt><tt class="py-name">service</tt><tt class="py-op">,</tt> <tt class="py-name">plan</tt><tt class="py-op">)</tt> </tt>
<a name="L366"></a><tt class="py-lineno">366</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L367"></a><tt class="py-lineno">367</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">myAgent</tt><tt class="py-op">.</tt><tt id="link-157" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-157', 'DEBUG', 'link-38');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">"NOP"</tt><tt class="py-op">,</tt> <tt class="py-string">'info'</tt><tt class="py-op">,</tt> <tt class="py-string">'bdi'</tt><tt class="py-op">)</tt> </tt>
<a name="L368"></a><tt class="py-lineno">368</tt>  <tt class="py-line"> </tt>
<a name="L369"></a><tt class="py-lineno">369</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">myAgent</tt><tt class="py-op">.</tt><tt id="link-158" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-158', 'DEBUG', 'link-38');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">"Restarting BDI cycle"</tt><tt class="py-op">,</tt> <tt class="py-string">'info'</tt><tt class="py-op">,</tt><tt class="py-string">'bdi'</tt><tt class="py-op">)</tt> </tt>
</div><a name="L370"></a><tt class="py-lineno">370</tt>  <tt class="py-line"> </tt>
<a name="L371"></a><tt class="py-lineno">371</tt>  <tt class="py-line"> </tt>
<a name="BDIBehaviour.planSelectedCB"></a><div id="BDIBehaviour.planSelectedCB-def"><a name="L372"></a><tt class="py-lineno">372</tt> <a class="py-toggle" href="#" id="BDIBehaviour.planSelectedCB-toggle" onclick="return toggle('BDIBehaviour.planSelectedCB');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.bdi.BDIBehaviour-class.html#planSelectedCB">planSelectedCB</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">plan</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BDIBehaviour.planSelectedCB-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="BDIBehaviour.planSelectedCB-expanded"><a name="L373"></a><tt class="py-lineno">373</tt>  <tt class="py-line">        <tt class="py-comment">#callback executed when a new plan is selected for execution</tt> </tt>
<a name="L374"></a><tt class="py-lineno">374</tt>  <tt class="py-line">        <tt class="py-comment">#must be overloaded</tt> </tt>
<a name="L375"></a><tt class="py-lineno">375</tt>  <tt class="py-line">        <tt class="py-keyword">pass</tt> </tt>
</div><a name="BDIBehaviour.goalCompletedCB"></a><div id="BDIBehaviour.goalCompletedCB-def"><a name="L376"></a><tt class="py-lineno">376</tt> <a class="py-toggle" href="#" id="BDIBehaviour.goalCompletedCB-toggle" onclick="return toggle('BDIBehaviour.goalCompletedCB');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.bdi.BDIBehaviour-class.html#goalCompletedCB">goalCompletedCB</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">goal</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BDIBehaviour.goalCompletedCB-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="BDIBehaviour.goalCompletedCB-expanded"><a name="L377"></a><tt class="py-lineno">377</tt>  <tt class="py-line">        <tt class="py-comment">#callback executed when a goal is completed succesfully</tt> </tt>
<a name="L378"></a><tt class="py-lineno">378</tt>  <tt class="py-line">        <tt class="py-comment">#must be overloaded</tt> </tt>
<a name="L379"></a><tt class="py-lineno">379</tt>  <tt class="py-line">        <tt class="py-keyword">pass</tt> </tt>
</div><a name="BDIBehaviour.serviceCompletedCB"></a><div id="BDIBehaviour.serviceCompletedCB-def"><a name="L380"></a><tt class="py-lineno">380</tt> <a class="py-toggle" href="#" id="BDIBehaviour.serviceCompletedCB-toggle" onclick="return toggle('BDIBehaviour.serviceCompletedCB');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.bdi.BDIBehaviour-class.html#serviceCompletedCB">serviceCompletedCB</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">service</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="BDIBehaviour.serviceCompletedCB-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="BDIBehaviour.serviceCompletedCB-expanded"><a name="L381"></a><tt class="py-lineno">381</tt>  <tt class="py-line">        <tt class="py-comment">#callback executed when a service is completed succesfully</tt> </tt>
<a name="L382"></a><tt class="py-lineno">382</tt>  <tt class="py-line">        <tt class="py-comment">#must be overloaded</tt> </tt>
<a name="L383"></a><tt class="py-lineno">383</tt>  <tt class="py-line">        <tt class="py-keyword">pass</tt> </tt>
</div></div><a name="L384"></a><tt class="py-lineno">384</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="spade-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://spade2.googlecode.com">SPADE</a></th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Wed Aug  1 18:45:02 2012
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
